MCPcopy Create free account
hub / github.com/collidingScopes/shimmer / randomizeInputs

Function randomizeInputs

wavyImage.js:512–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510}
511
512function randomizeInputs(){
513 speedInput.value = Math.ceil(Math.pow(Math.random(),2)*100);
514 xFreqInput.value = Math.ceil(Math.random()*50);
515 yFreqInput.value = Math.ceil(Math.random()*50);
516 xAmpInput.value = Math.ceil(Math.random()*100);
517 yAmpInput.value = Math.ceil(Math.random()*100);
518
519 getUserInputs();
520 setOscSpeed();
521 //createAnimation();
522}

Callers 1

wavyImage.jsFile · 0.85

Calls 2

getUserInputsFunction · 0.85
setOscSpeedFunction · 0.85

Tested by

no test coverage detected