class

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)
Source

Instance methods

draw_filled(image : Image, parent_x = 0, parent_y = 0)
Source
draw_filled(parent_x = 0, parent_y = 0)
Source
draw_outlined(image : Image, parent_x = 0, parent_y = 0)
Source
draw_outlined(parent_x = 0, parent_y = 0)
Source
height
Source
height=(height : Int32 | Float32)
Source
roundness
Source
roundness=(roundness : Int32 | Float32)
Source
segments
Source
segments=(segments : Int32)
Source
thickness
Source
thickness=(thickness : Int32)
Source
width
Source
width=(width : Int32 | Float32)
Source
x=(x : Int32 | Float32)
Source
y=(y : Int32 | Float32)
Source