PImage img; int numF = 20; int fc = 0; int nifades = 6; int targetY = 600; float easing = 0.05; fotaki[] f = new fotaki[numF]; int[] rr = {255, 255, 255, 0,0,0,0,0,0,0,0,0,0,0, 255, 0, 255, 0, 0, 0}; int[] gg = {0,0, 0, 255, 255, 255, 0,0,0, 255, 255, 255, 255, 255, 0, 0, 0, 0,255, 0}; int[] bb ={0,0,0, 0, 0, 0, 255,255, 255, 0, 0, 0, 0, 0, 0, 255, 0, 255, 0, 255}; int[] xx = {262, 305, 355, 363, 244, 310, 199, 395, 310, 197, 267, 305, 377, 440, 478, 144, 207, 287, 360, 426, 477}; int[] yy = {127, 91, 135, 215, 218, 233, 307, 311, 297, 380, 392, 379, 406, 385, 474, 475, 493, 483, 489, 494, 482}; boolean[] oo = {true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true}; xioni[] xn = new xioni[6000]; int[] sss = {3, 5, 7, 4, 6, 2}; int[] xxx = {54, 124, 208, 419, 476, 570}; int[] yyy = {0, -10, 0, 0, -5, -10}; /***************************************************************/ /*** SETUP ***/ /***************************************************************/ void setup() { int i; size(600, 600); frameRate(10); img = loadImage("tree.jpg"); for (i=0; i