class

Galaxy::NativeCanvas

Inherits Galaxy::Canvas < Reference < Object

Constructors

new(context : Draw::Context, width : Float64, height : Float64, texts : TextCache, images : ImageBufferCache)
Source

Instance methods

circle(x : Float64, y : Float64, radius : Float64, color : Color)
Source
circles(points : Array(Point), radius : Float64, color : Color)
Source
glow(x : Float64, y : Float64, radius : Float64, color : Color)
Source
image(x : Float64, y : Float64, width : Float64, height : Float64, bitmap : CrImage::RGBA, key : String)
Source
line(points : Array(Point), color : Color, thickness : Float64 = 1.0)
Source
polygon(points : Array(Point), color : Color)
Source
rectangle(x : Float64, y : Float64, width : Float64, height : Float64, color : Color, radius : Float64 = 0.0)
Source
text(label : String, x : Float64, y : Float64, size : Float64, color : Color, width : Float64 = 300.0)
Source

Nested types