struct

CrImage::Draw::CubicBezier

Inherits Struct / Value / Object

CubicBezier represents a cubic bezier curve for band filling.

Constructors

new(p0 : Point, p1 : Point, p2 : Point, p3 : Point)
Source
new(p0 : Tuple(Float64, Float64), p1 : Tuple(Float64, Float64), p2 : Tuple(Float64, Float64), p3 : Tuple(Float64, Float64))
Source

Instance methods

at(t : Float64) : Tuple(Float64, Float64)

Evaluate the bezier at parameter t (0..1)

Source
flatten(segments : Int32 = 32) : Array(Tuple(Float64, Float64))

Flatten to array of points

Source