Created
November 9, 2017 04:23
-
-
Save jbeda/34a4491e96162b92f8567d79b4c1be66 to your computer and use it in GitHub Desktop.
Kubernetes slinky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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