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

Function Osc

wavyImage.js:215–223  ·  view source on GitHub ↗
(speed)

Source from the content-addressed store, hash-verified

213}
214
215function Osc(speed) {
216
217 var frame = 0;
218
219 this.current = function(x) {
220 frame += speedInputValue * speed;
221 return Math.sin(frame + x * speed * 10);
222 };
223}
224
225
226//read and accept user input image

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected