xxxxxxxxxx
36
let xnoise = 0;
let ynoise = 0;
let skip = 0;
let w;
let mode = 'Rainbow';
let selector;
let slider;
let radSkip = 0.03;
function setup() {
createCanvas(500, 500);
frameRate(60);
selector = createSelect();
selector.option('Rainbow');
selector.option('Wireframe');
selector.option('White');
createElement('label','Spoke count:')
slider = createSlider(0,0.096,0.07,0.001);
createElement('p','Select a visualization mode above, and use the left and right arrow keys to rotate the shape.')
colorMode(HSB, TWO_PI);
//x,y,radius,speed (speed works best 1-100)
w = new WigglyMan(width/2,height/2,200,1);
}
function draw() {
background(0);
mode = selector.selected();
radSkip = 0.1 - slider.value();
w.display();
if(keyIsDown(LEFT_ARROW)){
skip += 0.01;
}
if(keyIsDown(RIGHT_ARROW)){
skip -= 0.01;
}
}