My artwork at present is a set of images of varying transparencies (tints) that get called out at random, overlap eachother and fill up the whole screen. Even though there is a tint applied to the images the overall work is somewhat 'flat' I wanted to have areas of varying light and dark. I was hoping to apply a multiply, soft light or overlay to random images to achieve that depth. I am getting stuck with the syntax;
as the images are called out in a random recursion, I don't know what to enter for any of their x and y co-ordinates or destination ones.
blend(x, y, width, height, dx, dy, dwidth, dheight, MODE),
below in red is what I attempted, but it says the method I entered is not applicable.
I'm created patterns with scanned images, I've created an equation to put in one image.
I would like to load two images into the one equation for them to alternate between in the 'if' option,
below is what I've tried and its not working, can someone please tell me where I've gone wrong.
Thank you, I appreciate all the help xx
Here's the singular code with just loading one image- which works perfectly,
void blob(PImage i, PImage j, float x, float y, float w, float h) {
//image(whatImage,x,y,w,h);
image(i,j,x,y,w,h);
if (w > 2) {
//each time we call blob divide the images w by 2
//so each new image will draw at half the size of the previous
blob(i, j, x + w/1.2, y + w/01.2, w/2);
blob(i, j, x - w/1.2, y - w/1.2, w/2);
}
}
I have a set of 6 pngs that I want to load into an array and call them out at random using a for loop.
I'm really stuck in the basic code notation.
I've combed a lot of tutorials, forum questions etc and can't find anywhere the basic sequence to write the code, or I may have seen it but not understood how to apply it to my work.
Can someone let me know if I need to define a class or string when loading images into an array? I've seen other people do it in similar forum questions but I'm not sure if I need to.
I've also read that you should name your files for an array as 0001.png, 0002.png, 0003.png etc
can someone tell me why this is please and if I should do it.
Here is what i started with, can someone please help me fix up the code and explain the logic of each step.
I really appreciate all the help.
Thank you :)
int numPuddles = 6; //number of images
PImage[] images = new PImage[numPuddles]; //? just copied someone else's on a forum don't really get this line