Skip to content
master
Switch branches/tags
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Ruby library to draw Bézier curves

Resources

License

Releases

No releases published

Packages

No packages published

Languages