Ruby library to draw Bézier curves
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
LICENSE
README.md
Rakefile
bezier.gemspec

README.md

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