Artists
Translations
Voluta - test I
Translated by
Jack Lee
Based on:
Voluta
by
James Ver Hague
Category:
experimental
p5.js
Processing
Play
Stop
/* 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). */ function setup() { createCanvas(700, 700, WEBGL); } function draw() { background(255); ambientLight(255, 255, 255); pointLight(250, 250, 250, 0, 0, 500); for (let i = 0; i < width; i += 10) { push(); translate( i - width/2, sin(frameCount/40.0) * map(mouseY, 0, height, 0, i), 0 ); rotateX(map(mouseX, 0, width, 0, i*5)/200.0 + (frameCount/30.0)); fill(0, 15); stroke(200); box(10, 250, 250); pop(); } }
/* 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(); } }