Skip to content
Martin Prout edited this page Aug 7, 2015 · 2 revisions

For JRubyArt we enable a convenience method color (based on processing PGraphics color), and for the most part this method behaves as the processing color method (but is implemented differenly under the hood to work with ruby). Basically the input can be an Array of Fixnum (approximating to a processing int) an Array of Float (approximating to processing float) or a special hexadecimal string or a hexadecimal number. See example sketch here.

Clone this wiki locally