colorMode()
Color / SettingDescription
Changes the way Processing interprets color data. Default is RGB with range 0-255.
Syntax
void colorMode(int mode)
void colorMode(int mode, float max)
void colorMode(int mode, float mH, float mS, float mB, float mA)
Parameters
| Name | Type | Description |
|---|---|---|
| mode | int | RGB or HSB |
| max | float | range for all channels (optional) |
| mH | float | range for hue |
| mS | float | range for saturation |
| mB | float | range for brightness |
| mA | float | range for alpha |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...