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

Instance methods

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

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

Flatten to array of points

Source