Draw to one image after getting data from a first.
in
Programming Questions
•
2 years ago
Hi,
I'm setting up:
void setup() {
source = loadImage(fileName);
destination = createImage(source.width * 2, source.height * 2, RGB);
size(source.width * 2, source.height * 2);
}
So I'm then getting pixel data from source and want to draw ellipses into destination. If I try
derstination.fill(r,g,b,100);
destination.ellipse(x*2,y*2,mySize,mySize);
I get told ellipse and fill don't exist and if I try
fill(r,g,b,100);
ellipse(x*2,y*2,mySize,mySize);
I get a blank destination.
How do I tell fill(), ellipse() and so on where to draw onto?
// Tony Williams
1