import processing.opengl.*; import controlP5.*; ControlP5 controlP5; PImage img; String[] palettes; color[] imageColors; color[] colores = new color[4]; float a = 0; int ancho = 800; int alto =400; float rmax; float rmaxinit = 180; float rmin = 10; float yy = alto/2; float r; boolean limpiarPantalla = false; int incremento =ancho/20; void setup() { size(ancho,alto); frameRate(20); setupPalettes(); noCursor(); smooth(); initPalette(); rmax = rmaxinit; initRender(); setColor(); background(0); Texto(); } void draw() { render(); display(); } // draw void drawLine(){ stroke(40); for(int i=0; i width) { initRender(); } } void initRender(){ setColor(); a = 0; if (rmax <= rmin) { limpiarPantalla = true; //yy =alto-rmaxinit;; rmax= rmaxinit; println("------------rmax"+rmax); ; } else { limpiarPantalla = false; rmax = rmax - 10; } println("rmax:"+rmax); } //------------------------- // colores void setColor(){ if (limpiarPantalla) { initPalette(); } else { if (rmax