Galaxy::NativeCanvas
Inherits Galaxy::Canvas < Reference < Object
Constructors
new(context : Draw::Context, width : Float64, height : Float64, texts : TextCache, images : ImageBufferCache)
SourceInstance methods
circle(x : Float64, y : Float64, radius : Float64, color : Color)
Sourcecircles(points : Array(Point), radius : Float64, color : Color)
Sourceglow(x : Float64, y : Float64, radius : Float64, color : Color)
Sourceimage(x : Float64, y : Float64, width : Float64, height : Float64, bitmap : CrImage::RGBA, key : String)
Sourceline(points : Array(Point), color : Color, thickness : Float64 = 1.0)
Sourcepolygon(points : Array(Point), color : Color)
Sourcerectangle(x : Float64, y : Float64, width : Float64, height : Float64, color : Color, radius : Float64 = 0.0)
Sourcetext(label : String, x : Float64, y : Float64, size : Float64, color : Color, width : Float64 = 300.0)
Source