Constructor
new BackgroundStar(x, y, radius, color)
Takes x and y coordinates for star, along with radius and color
Parameters:
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number | |
radius |
Number | |
color |
String |
- Source:
Classes
Methods
draw(user_x, user_y)
Draws the background star given the current user x and y
Parameters:
Name | Type | Description |
---|---|---|
user_x |
Number | user view offset x |
user_y |
Number | user view offset y |
- Source:
update(user_x, user_y)
Update function to be called by animation loop, takes user x and y
Parameters:
Name | Type | Description |
---|---|---|
user_x |
Number | user view offset x |
user_y |
Number | user view offset y |
- Source: