move draw logic to separate package
This commit is contained in:
parent
94dd547a74
commit
6ce8a3feba
22 changed files with 78 additions and 59 deletions
|
|
@ -24,7 +24,9 @@ angle(saw)
|
|||
`;
|
||||
|
||||
// https://strudel.cc/?C31_NrcMfZEO
|
||||
export const spiralflower = `const {innerWidth:ww,innerHeight:wh} = window;
|
||||
export const spiralflower = `let {innerWidth:ww,innerHeight:wh} = window;
|
||||
ww*=window.devicePixelRatio;
|
||||
wh*=window.devicePixelRatio;
|
||||
const ctx = getDrawContext()
|
||||
const piDiv180 = Math.PI / 180;
|
||||
function fromPolar(angle, radius, cx, cy) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue