Skip to content

Instantly share code, notes, and snippets.

@baku89
Created March 4, 2024 08:36
Show Gist options
  • Save baku89/1e1fdf88a89c8d28773908b4fae9da15 to your computer and use it in GitHub Desktop.
Save baku89/1e1fdf88a89c8d28773908b4fae9da15 to your computer and use it in GitHub Desktop.
r = ngon([50, 50], 40, 4)
r = subdivide(r, 6)
r = spawn(r, (seg, i) =>
arcByPointsAngle(
seg.start,
seg.point,
scalar.sin(/*0*/time * 360/**/)
* 180 * (i % 2 ? 1 : -1)
)
)
stroke(r, '', 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment