Skip to content

Instantly share code, notes, and snippets.

@baku89
Created February 27, 2024 16:31
Show Gist options
  • Save baku89/72052e21a00ce35a716936a53d6a8560 to your computer and use it in GitHub Desktop.
Save baku89/72052e21a00ce35a716936a53d6a8560 to your computer and use it in GitHub Desktop.
const c = Path.circle([50, 50], 45)
const cs = Path.subdiv(c, 5)
const p = Path.spawnVertex(cs, (s, i) => {
const t = scalar.coswave(i / 10 + time)
return Path.arcFromPointsAndAngle(
s.start,
s.point,
scalar.mix(36, -230, t)
).curves[0].vertices[1]
})
stroke(p, 'black', 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment