Notes:
We love optical illusions. Check this one out!
A confession: This design was inspired by an image generated by Paul Nasca.
I needed an algorithm to position the light and dark disks, so I got out my trusty Calculus book to find a mapping that created a ripply surface (cuz Paul's circles looked ripply to me) and used that surface to create positional angles at each (x,y) coordinate for the light/dark circles.
This current design is not as ripply as Paul's but it is a start!
This project actually inspired the creation of the TNTShadowedDisk.
The design to get the ripply effect is shown in the Swimmy Circles Topo Map in this design library.
Features:
| Comments: |
Made use of the 'translate' function for TNTPoints. |
|---|---|
| Even More: |
var angle = 360 * Math.sin(.002 * (x * x + y * y));
angle = Math.abs(angle);
var delx = offsetRadius * Math.cos(angle * Math.PI / 180);
var dely = offsetRadius * Math.sin(angle * Math.PI / 180);
|
