background

background-float

background-image

background-int

clearclj

fill

fill-float

fill-int

no-fill

no-stroke

stroke

stroke-float

stroke-int

background

Arguments
[r g b][rgb alpha][rgb][r g b a]
Docstring
Sets the color used for the background of the Processing
window. The default background is light gray. In the draw function,
the background color is used to clear the display window at the
beginning of each frame.

It is not possible to use transparency (alpha) in background colors
with the main drawing surface, however they will work properly with
create-graphics. Converts args to floats.
Works only inside sketch functions?
Yes
Original Processing method
background()

background-float

Arguments
[gray][r g b][r g b a][gray alpha]
Docstring
Sets the color used for the background of the Processing
window. The default background is light gray. In the draw function,
the background color is used to clear the display window at the
beginning of each frame.

It is not possible to use transparency (alpha) in background colors
with the main drawing surface, however they will work properly with
create-graphics. Converts args to floats.
Works only inside sketch functions?
Yes
Original Processing method
background()

background-image

Arguments
[img]
Docstring
Specify an image to be used as the background for a sketch. Its
width and height must be the same size as the sketch window. Images
used as background will ignore the current tint setting.
Works only inside sketch functions?
Yes
Original Processing method
background()

background-int

Arguments
[rgb alpha][rgb]
Docstring
Sets the color used for the background of the Processing
window. The default background is light gray. In the draw function,
the background color is used to clear the display window at the
beginning of each frame.

It is not possible to use transparency (alpha) in background colors
with the main drawing surface, however they will work properly with
create-graphics. Converts rgb to an int and alpha to a float.
Works only inside sketch functions?
Yes
Original Processing method
background()

clearclj

Arguments
[]
Docstring
Clears the pixels within a buffer. This function only works on
graphics objects created with the (create-graphics) function meaning
that you should call it only inside (with-graphics) macro. Unlike
the main graphics context (the display window), pixels in additional
graphics areas created with (create-graphics) can be entirely or
partially transparent. This function clears everything in a graphics
object to make all of the pixels 100% transparent.
Works only inside sketch functions?
Yes
Original Processing method
clear()

fill

Arguments
[r g b][rgb alpha][rgb][r g b a]
Docstring
Sets the color used to fill shapes.
Works only inside sketch functions?
Yes
Original Processing method
fill()

fill-float

Arguments
[gray][r g b][r g b alpha][gray alpha]
Docstring
Sets the color used to fill shapes. For example, (fill 204 102 0),
will specify that all subsequent shapes will be filled with orange.
Works only inside sketch functions?
Yes
Original Processing method
fill()

fill-int

Arguments
[rgb alpha][rgb]
Docstring
Sets the color used to fill shapes.
Works only inside sketch functions?
Yes
Original Processing method
fill()

no-fill

Arguments
[]
Docstring
Disables filling geometry. If both no-stroke and no-fill are called,
nothing will be drawn to the screen.
Works only inside sketch functions?
Yes
Original Processing method
noFill()

no-stroke

Arguments
[]
Docstring
Disables drawing the stroke (outline). If both no-stroke and
no-fill are called, nothing will be drawn to the screen.
Works only inside sketch functions?
Yes
Original Processing method
noStroke()

stroke

Arguments
[x y z a][rgb alpha][rgb][x y z]
Docstring
Sets the color used to draw lines and borders around shapes. This
color is either specified in terms of the RGB or HSB color depending
on the current color-mode (the default color space is RGB, with
each value in the range from 0 to 255).
Works only inside sketch functions?
Yes
Original Processing method
stroke()

stroke-float

Arguments
[gray][x y z a][x y z][gray alpha]
Docstring
Sets the color used to draw lines and borders around
shapes. Converts all args to floats
Works only inside sketch functions?
Yes
Original Processing method
stroke()

stroke-int

Arguments
[rgb alpha][rgb]
Docstring
Sets the color used to draw lines and borders around
shapes. Converts rgb to int and alpha to a float.
Works only inside sketch functions?
Yes
Original Processing method
stroke()