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)
SourceInstance methods
center_x
Sourcecenter_x=(center_x : Int32 | Float32)
Sourcecenter_y
Sourcecenter_y=(center_y : Int32 | Float32)
Sourcedraw_filled(parent_x = 0, parent_y = 0)
Sourcedraw_outlined(parent_x = 0, parent_y = 0)
Sourceheight
Sourceheight=(height)
Sourceradius
Sourceradius=(radius : Int32 | Float32)
Sourcerotation
Sourcerotation=(rotation : Int32 | Float32)
Sourcesides
Sourcesides=(sides : Int32)
Sourcewidth
Sourcewidth=(width)
Sourcex=(x)
Sourcey=(y)
Source