Game::RoundedRectangle
Inherits Game::Shape < Reference < Object
Constructors
new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, width : Float32 | Int32 = 1, height : Float32 | Int32 = 1, roundness : Float32 | Int32 = 10, segments : Int32 = 10, thickness : Int32 = 1, color = nil, filled = Shape::FILLED)
SourceInstance methods
draw_filled(image : Image, parent_x = 0, parent_y = 0)
Sourcedraw_filled(parent_x = 0, parent_y = 0)
Sourcedraw_outlined(image : Image, parent_x = 0, parent_y = 0)
Sourcedraw_outlined(parent_x = 0, parent_y = 0)
Sourceheight
Sourceheight=(height : Int32 | Float32)
Sourceroundness
Sourceroundness=(roundness : Int32 | Float32)
Sourcesegments
Sourcesegments=(segments : Int32)
Sourcethickness
Sourcethickness=(thickness : Int32)
Sourcewidth
Sourcewidth=(width : Int32 | Float32)
Sourcex=(x : Int32 | Float32)
Sourcey=(y : Int32 | Float32)
Source