Voluta - test I

Jack Lee


Based on: Voluta by James Ver Hague, 1978

Category: experimental


Description:

No description provided This sketch is running in the browser.






/* 
Part of the ReCode Project (http://recodeproject.com)
Based on "Voluta" by James Ver Hague
Originally published in "Computer Graphics and Art" v3n1, 1978
Copyright (c) 2020 Jack Lee - OSI/MIT license (http://recodeproject/license).
*/

/* @pjs pauseOnBlur="true"; */

void setup() {
  size(700,700,P3D);
}

void draw() {
  background(255);
  ambientLight(255,255,255);
  spotLight(250, 250, 250, width/2, height/2, 500, 0, 0, -1, PI/3, 2);
  for(int i=0; i<width; i+=10){
      pushMatrix();
      translate(i,height/2+sin(frameCount/40.0)*map(mouseY,0,height,0,i),0);
      rectMode(CENTER);
      rotateX(map(mouseX,0,width,0,i*5)/200.0+(frameCount/30.0));
      fill(0,15);
      stroke(200);
      box(10,250,250);
      popMatrix();
    }
}