Glop
Defined In: | glop.js |
Class: | Glop |
Extends: |
Property | Defined By | |
---|---|---|
changed_size : Boolean (Wiki Page)
Whether the Glop environment has changed x,y size since the last frame....
Whether the Glop environment has changed x,y size since the last frame.
|
Glop Glop | |
date : Date (Wiki Page)
A Date object updated (regenerated) every frame....
A Date object updated (regenerated) every frame.
|
Glop Glop | |
fps : Number (Wiki Page)
The framerate over the last 10 seconds....
The framerate over the last 10 seconds.
|
Glop Glop | |
frame : Number (Wiki Page)
The number of frames that have been drawn....
The number of frames that have been drawn.
|
Glop Glop | |
height : (Wiki Page)
The height of the canvas...
The height of the canvas
|
Glop Glop | |
paused : (Wiki Page)
If set to true, drawing is disabled...
If set to true, drawing is disabled
|
Glop Glop | |
snapshot : (Wiki Page)
Used to check if anything has changed since the last frame...
Used to check if anything has changed since the last frame
|
Glop Glop | |
start_time : Number (Wiki Page)
The startup time in milliseconds since... 1970?...
The startup time in milliseconds since... 1970?
|
Glop Glop | |
tail : (Wiki Page)
The number of frames to continue rendering, even if there's no further user interaction...
The number of frames to continue rendering, even if there's no further user interaction
|
Glop Glop | |
times : Number (Wiki Page)
The last 100 frames worth of timestamps, used to calculate fps....
The last 100 frames worth of timestamps, used to calculate fps.
|
Glop Glop | |
timestamp : Number (Wiki Page)
The current time in milliseconds since... 1970?...
The current time in milliseconds since... 1970?
|
Glop Glop | |
width : Number (Wiki Page)
The width of the canvas...
The width of the canvas
|
Glop Glop |
Method | Defined By | |
---|---|---|
draw( custom_size, force_draw ) : void (Wiki Page)
Draws a frame. Sets height/width, moves the map as needed, fires draw events, and draws
the object array unless told not...
Draws a frame. Sets height/width, moves the map as needed, fires draw events, and draws
the object array unless told not to (by subscriber of glop:draw.
Parameters:
|
Glop Glop | |
draw_powersave( ) : void (Wiki Page)
Draws only if needed. Designed to be called periodically....
Draws only if needed. Designed to be called periodically.
Parameters:
|
Glop Glop | |
fire( a, b, c ) : void (Wiki Page)
Binds all events to the main canvas. Use Glop.observe for all events....
Binds all events to the main canvas. Use Glop.observe for all events.
Parameters:
|
Glop Glop | |
init( ) : void (Wiki Page)
Sets up powersaving....
Sets up powersaving.
Parameters:
|
Glop Glop | |
observe( a, b, c ) : void (Wiki Page)
Binds all events to the main canvas. Use Glop.observe for all events....
Binds all events to the main canvas. Use Glop.observe for all events.
Parameters:
|
Glop Glop | |
random_color( ) : String (Wiki Page)
Creates a random color...
Creates a random color
Parameters:
|
Glop Glop | |
resize( custom_size ) : String (Wiki Page)
Adjusts size of canvas element to match browser window size...
Adjusts size of canvas element to match browser window size
Parameters:
|
Glop Glop | |
stopObserving( a, b, c ) : void (Wiki Page)
Binds all events to the main canvas. Use Glop.observe for all events....
Binds all events to the main canvas. Use Glop.observe for all events.
Parameters:
|
Glop Glop | |
trigger_draw( Event event ) : void (Wiki Page)
Triggered when moused is moved on the canvas...
Triggered when moused is moved on the canvas
Parameters:
|
Glop Glop |
Event | Defined By | |
---|---|---|
glop:draw : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Glop Glop | |
glop:postdraw : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Glop Glop | |
glop:predraw : ( ) (Wiki Page)
Listeners will be called with the following arguments:
|
Glop Glop |