delay-frame

exit

no-loop

pop-style

push-style

redraw

start-loop

delay-frame

Arguments
[freeze-ms]
Docstring
Forces the program to stop running for a specified time. Delay
times are specified in thousandths of a second, therefore the
function call (delay 3000) will stop the program for three
seconds. Because the screen is updated only at the end of draw,
the program may appear to 'freeze', because the screen will not
update when the delay fn is used. This function has no affect
inside setup.
Works only inside sketch functions?
Yes
Original Processing method
delay()

exit

Arguments
[]
Docstring
Quits/stops/exits the program.  Rather than terminating
immediately, exit will cause the sketch to exit after draw has
completed (or after setup completes if called during the setup
method). 
Works only inside sketch functions?
Yes
Original Processing method
exit()

no-loop

Arguments
[]
Docstring
Stops Processing from continuously executing the code within
draw. If start-loop is called, the code in draw will begin to run
continuously again. If using no-loop in setup, it should be the last
line inside the block.

When no-loop is used, it's not possible to manipulate or access the
screen inside event handling functions such as mouse-pressed or
key-pressed. Instead, use those functions to call redraw or
loop which will run draw, which can update the screen
properly. This means that when no-loop has been called, no drawing
can happen, and functions like save-frame may not be used.

Note that if the sketch is resized, redraw will be called to
update the sketch, even after no-oop has been
specified. Otherwise, the sketch would enter an odd state until
loop was called.
Works only inside sketch functions?
Yes
Original Processing method
noLoop()

pop-style

Arguments
[]
Docstring
Restores the prior settings on the 'style stack'. Used in
conjunction with push-style. Together they allow you to change the
style settings and later return to what you had. When a new style is
started with push-style, it builds on the current style information.
The push-style and pop-style functions can be nested to provide more
control
Works only inside sketch functions?
Yes
Original Processing method
popStyle()

push-style

Arguments
[]
Docstring
Saves the current style settings onto a 'style stack'. Use with
pop-style which restores the prior settings. Note that these
functions are always used together. They allow you to change the
style settings and later return to what you had. When a new style is
started with push-style, it builds on the current style
information. The push-style and pop-style fns can be embedded to
provide more control.

The style information controlled by the following functions are
included in the style: fill, stroke, tint, stroke-weight,
stroke-cap, stroke-join, image-mode, rect-mode, ellipse-mode,
shape-mode, color-mode, text-align, text-font, text-mode, text-size,
text-leading, emissive, specular, shininess, and ambient
Works only inside sketch functions?
Yes
Original Processing method
pushStyle()

redraw

Arguments
[]
Docstring
Executes the code within the draw fn one time. This functions
allows the program to update the display window only when necessary,
for example when an event registered by mouse-pressed or
key-pressed occurs.

In structuring a program, it only makes sense to call redraw
within events such as mouse-pressed. This is because redraw does
not run draw immediately (it only sets a flag that indicates an
update is needed).

Calling redraw within draw has no effect because draw is
continuously called anyway.
Works only inside sketch functions?
Yes
Original Processing method
redraw()

start-loop

Arguments
[]
Docstring
Causes Processing to continuously execute the code within
draw. If no-loop is called, the code in draw stops executing.
Works only inside sketch functions?
Yes
Original Processing method
loop()