class

Game::Polygon

Inherits Game::Shape < Reference < Object

Constructors

new(center_x = nil, center_y = nil, radius = nil, x = nil, y = nil, size = nil, sides : Int32 = 5, rotation : Float32 | Int32 = 0, color = nil, filled = Shape::FILLED)
Source

Instance methods

center_x
Source
center_x=(center_x : Int32 | Float32)
Source
center_y
Source
center_y=(center_y : Int32 | Float32)
Source
draw_filled(parent_x = 0, parent_y = 0)
Source
draw_outlined(parent_x = 0, parent_y = 0)
Source
height
Source
height=(height)
Source
radius
Source
radius=(radius : Int32 | Float32)
Source
rotation
Source
rotation=(rotation : Int32 | Float32)
Source
sides
Source
sides=(sides : Int32)
Source
width
Source
width=(width)
Source
x=(x)
Source
y=(y)
Source