Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
Shale
main
Top Level Namespace
OldVector2
OldVector3
OldVector4
PNG
Ancillary
ChunkType
ColourDepth
Critical
IHDR
PNG
Shale
Display
Edge
Gradient
Maths
Matrix4
RenderCtx
Stars3D
Stats
Surface
TestDrawing
Vector4
Vertex
Built with Crystal 1.9.2
2023-10-07 10:17:32 UTC
class
Shale::Stars3D
Shale::Stars3D
Reference
Object
Defined in:
shale/stars3d.cr
Constructors
.new
(num_of_stars : Int32, spread : Float32, speed : Float32)
Instance Method Summary
#dist_pos
: Float32
#face_pos
: Float32
#render
(target : Shale::Surface, delta : Float64)
#reset_star
(i : Int32)
Constructor Detail
def self.
new
(num_of_stars : Int32, spread : Float32, speed : Float32)
#
[
View source
]
Instance Method Detail
def
dist_pos
: Float32
#
[
View source
]
def
face_pos
: Float32
#
[
View source
]
def
render
(target :
Shale::Surface
, delta : Float64)
#
[
View source
]
def
reset_star
(i : Int32)
#
[
View source
]