UNPKG

@absulit/points

Version:

A Generative Art library made in WebGPU

15 lines (14 loc) 334 B
/* @ts-self-types="./animation.d.ts" */ const fusin=` fn fusin(speed: f32) -> f32{ return sin(params.time * speed); } `;const fucos=` fn fucos(speed: f32) -> f32{ return cos(params.time * speed); } `;const fnusin=` fn fnusin(speed: f32) -> f32{ return (sin(params.time * speed) + 1.) * .5; } `;export{fnusin,fucos,fusin};