General

Look at Functions' Home first.

These functions are used to set draw settings or draw on globalMonitor.

setRenderer

argument type info
type Int Should be picked from renderEngine table

Sets the way that the library is going to draw things.

bClear

It clears globalMonitor

bClearMonitorGroup

It clears globalMonitor and globalMonitorGroup

setColor

argument type info
color Color The color that globalColor should be set to

By setting globalColor to color every shape (rectangles, points, ...) that is going to be drawn after this function will use that color.

setTextColor

argument type info
color Color The color that globalTextColor should be set to

By setting globalTextColor to color every text that is going to be written after this function will use that color.

setBackgroundTextColor

argument type info
color Color The color that globalBackgroundTextColor should be set to

By setting globalBackgroundTextColor to color every text that is going to be written after this function will have as its background that color.

setBackground

argument type info
color Color The color that should be added to globalMonitor's background

This function sets globalMonitor's background color to color and then does a bClear on the globalMonitor.

setBackgroundMonitorGroup

argument type info
color Color The color that should be added to globalMonitor and globalMonitorGroup's background

The same as setBackground but it also does it to all monitors in globalMonitorGroup.list

setRectangleType

argument type info
type RectangleType The color that globalRectangleType should be set to

By setting globalRectangleType to type every rectangle that is going to be drawn after this function will be of that type.

text

argument type info
x Int The x pos on globalMonitor where text should be written
y Int The y pos on globalMonitor where text should be written
text String The text that should be written on x, y of globalMonitor
transparentBG Boolean If set to true the text will have a transparent background (Works only with experimental renderEngine)

Writes text at x, y on globalMonitor with text color globalTextColor and text's background color globalBackgroundTextColor.

point

argument type info
x Int The x pos on globalMonitor where the point should be drawn
y Int The y pos on globalMonitor where the point should be drawn

Draws a point at x, y on globalMonitor with color globalColor.

line

argument type info
x1 Int The x pos on globalMonitor where the line should start
y1 Int The y pos on globalMonitor where the line should start
x2 Int The x pos on globalMonitor where the line should end
y2 Int The y pos on globalMonitor where the line should end

Draws a line that starts from x1, y1 and ends at x2, y2 on globalMonitor with color globalColor.

rectangle

argument type info
x1 Int The starting x pos on globalMonitor where the rectangle should start to be drawn
y1 Int The starting y pos on globalMonitor where the rectangle should start to be drawn
x2 Int The ending x pos on globalMonitor where the rectangle should stop to be drawn
y2 Int The ending y pos on globalMonitor where the rectangle should stop to be drawn

Draws a rectangle with type globalRectangleType on globalMonitor from x1, y1 to x2, y2 with color globalColor.

ellipse

argument type info
xCenter Int The x pos on globalMonitor where the center of the ellipse should be
yCenter Int The y pos on globalMonitor where the center of the ellipse should be
radius Int The radius of the ellipse

Draws an ellipse that has as its center x, y on globalMonitor with color globalColor.

Note: It's called ellipse because of the way that CC handles pixels, so we can't really draw a circle.