Skip to content

Instantly share code, notes, and snippets.

@jbeda
Created November 9, 2017 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbeda/34a4491e96162b92f8567d79b4c1be66 to your computer and use it in GitHub Desktop.
Save jbeda/34a4491e96162b92f8567d79b4c1be66 to your computer and use it in GitHub Desktop.
Kubernetes slinky
var myPath = new Path();
myPath.strokeColor = 'red';
var center = new Point(400,400)
var numPoints = 200;
for (i = 0; i < numPoints; i++) {
var vector = new Point({
angle: (360/7)*(i%7),
length: i * 1
});
myPath.add(center + vector)
}
myPath = new Path()
myPath.strokeColor = 'red';
for (i = 0; i < 8; i++){
var vector = new Point({
angle: (360/7)*((i)%7),
length: numPoints+10
})
myPath.add(center+vector)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment