using color type
in
Library and Tool Development
•
2 years ago
Hi!
I've been trying to create a library for processing but I don't understand how tu use processing types and methods in my library
here a simple example of what I want to do:
- import processing.core.*;
- public class Point
- {
- int x,y;
- color c;
- public Point(int ax, int ay, int ar, int ag, int ab)
- {
- x = ax;
- y = ay;
- c = color(ar,ag,ab);
- }
- }
two lines with yellow background give me an error, but I can't find a solution.
first says: color can not be resolved as a type
second one: The method color(int,int,int) is undefined for the type point
1