After getting started with Rune.js, I approached assignment #1:
On ITP’s laser printer, print your first generated Rune.js sketch. A few rules about your code: You can only use black (0) and white (255). You are only allowed to use triangle(), rect() and ellipse() once each, and no other drawing functions are allowed (no beginShape or images). Bring to class a design of an ice cream cone. Yes, an ice cream cone.
The original design plan was to have an ice cream cone to appear on the ground, melting, the cone made up of many tiny triangles. Step 1 was to figure out the exact dimensions of a triangle. With professional studies of many over a decade behind me, sin and cos seemed like memories of another lifetime. Needless to say, after researching this, I ended up playing around with the numbers to get something close.
Unto the code was born the next challenge: how to use a for loop to get multiple instances of ellipses in varying sizes, only using the ellipse function once AND how to use a for loop to get multiple triangles to align together to form the cone.
After playing around with the triangle for loop first, I had no good leads, so I jumped over to the ellipse, where I was able to work out a varied spectrum of ellipses. I soon returned to the triangle for loops and found myself nesting wild results.
After many attempts at getting a for loop to work, siting examples from Rune.js documentation, I was finally able to craft several iterations of possible ice cream cones, fitting within the constraints of the design challenge.