Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
space-rocks
main
Bullet
Game
LargeRock
Line
Point2D
Rl
Shape
Ship
SpaceRocksGame
VectorSprite
Generated using Crystal 1.14.0
2024-11-26 07:13:09 UTC
class
Shape
Shape
Reference
Object
Defined in:
lib/shape.cr
Constructors
.new
(points : Array(Point2D), visible : Bool)
Instance Method Summary
#draw
(parent_pos : Rl::Vector2)
#rotate
(deg : Float64)
#visible
: Bool
#visible=
(visible : Bool)
Constructor Detail
def self.
new
(points : Array(
Point2D
), visible : Bool)
#
[
View source
]
Instance Method Detail
def
draw
(parent_pos : Rl::Vector2)
#
[
View source
]
def
rotate
(deg : Float64)
#
[
View source
]
def
visible
: Bool
#
[
View source
]
def
visible=
(visible : Bool)
#
[
View source
]