color() on a PGraphics canvas in the Processing IDE
in
Core Library Questions
•
3 months ago
Hi,
The setup of my sketch means that I need to call color(float r, float g, float b) on a PGraphics canvas because I have set the colorMode of the canvas to be different from the main colorMode. However, the IDE interprets this as a cast and gets confused about the '.' in canvas.color(0.1, 0.6, 0.8). Looking at the source, PGraphics does have a color() method. Is there any way to trick the IDE in using that rather than a cast?
Thanks,
Rob
1