with-fill

with-stroke

with-fill

Arguments
[fill-args & body]
Docstring
Temporarily set the fill color for the body of this macro.
 The code outside of with-fill form will have the previous fill color set.

 The fill color has to be in a vector!
 Example: (with-fill [255] ...)
          (with-fill [10 80 98] ...)
Works only inside sketch functions?
Yes
Original Processing method
None. It is present only in Quil.

with-stroke

Arguments
[stroke-args & body]
Docstring
Temporarily set the stroke color for the body of this macro.
 The code outside of with-stroke form will have the previous stroke color set.

 The stroke color has to be in a vector!
 Example: (with-stroke [255] ...)
          (with-stroke [10 80 98] ...)
Works only inside sketch functions?
Yes
Original Processing method
None. It is present only in Quil.