Recode Test IV

Jack Lee


Based on: Helikos by James Ver Hague, 1977

Category: experimental


Description:

more translations of James Ver Hague:

https://www.notion.so/Project-1-2858ef9356d448dd8454347d50afde31 This sketch is running in the browser.






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

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

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

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