Extends
Members
intensity :number
    Intensity to be drawn at.
    Type:
- number
 
- Source:
 
x :Number
    x coordinate
    Type:
- Number
 
- Overrides:
 - Source:
 
y :Number
    y coordinate
    Type:
- Number
 
- Overrides:
 - Source:
 
z :number
    Y coordinate to be drawn on screen. Z coordinate in 3d space
    Type:
- number
 
- Source:
 
Methods
draw(x)
    Draws the star at x
    Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            number | x coordinate for rendering | 
- Source:
 
project()
Projects closest x or y coordinate to the boundry
    Projects closest x or y coordinate to the boundry. This is used to create the effect of a "box" of stars, where all StarObject have one coordinate on the min or max plane. In this implementation, the x/y coordinate closest to the plane is set to the plane itself. However as the stars are actually rendered as a cylinder, this does create a bug where stars are more likely to be clustered around the "corners" of the skybox, however I don't deem this an issue worth working on, as clusters of stars actually create a better looking texture than a perfectly random distribution.
- Source: