Project

bezier

0.0
No commit activity in last 3 years
No release in over 3 years
Library to draw Bézier curves
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.3.3
~> 10.3.1
~> 0.8.7.4
~> 0.7.1

Runtime

~> 1.3.1
 Project Readme

Bézier

A Ruby library to draw Bézier curves.

Quick Start

require 'bezier'

p0 = Bezier::Point.new(20, 20)
p1 = Bezier::Point.new(20, 100)
p2 = Bezier::Point.new(200, 100)
p3 = Bezier::Point.new(200, 20)

bezier = Bezier::Bezier.new(p0, p1, p2, p3)
Bezier::Painter.new { |p| p.points = bezier.run }.save # Check Bézier.png

Documentation

RubyDoc