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
Line
Line
Reference
Object
Defined in:
lib/line.cr
Constructors
.new
(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : Rl::Color =
Rl
::
WHITE
)
Instance Method Summary
#draw
(x_offset, y_offset)
#draw
#rotate
(deg : Float64)
Constructor Detail
def self.
new
(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : Rl::Color =
Rl
::
WHITE
)
#
[
View source
]
Instance Method Detail
def
draw
(x_offset, y_offset)
#
[
View source
]
def
draw
#
[
View source
]
def
rotate
(deg : Float64)
#
[
View source
]