Loop-de-Loop

by JayNick - uploaded on December 17, 2015, 2:43 pm

Image creates a spirolateral type image for a given number sequence. Line segments are drawn 90 degrees in the counterclockwise direction on a 20x20 grid. Repeating patterns colored in red.



Starting point (x,y) - defaults to (10,10) - and number sequence can be passed to the image via a querystring appended to the url i.e. append ?x=7&y=5&s=3,1,6,5,4,2,7,6,4 to the image url and draw that sequence. Default image parameters are equivalent to the query string ?x=13&y=19&s=6,6,18 The timing can be changed by passing t=milliseconds (default=250 is minimum allowed).



Have a favorite query string? Share it by adding it to the comments on this image. Thanks for sharing!

Tags
STEAM STEAMcoded.org STEM art coding engineering handcoded learn loop loops math science script scripted spirolateral svg technology
Safe for Work?
Yes

Comments

0 Comments. Please login to comment or add your own remix.