Notes:
Some TNTDisks with an interesting tiling algorithm. Recall that 'tiling' a plane typically requires a nested loop spanning two directions, horzontal and vertical. Observe that the TNTDisk radii are larger toward the center (origin) of the image, and fall off uniformly with the distance from the origin. How did we do that?!
Features:
| Comments: |
The default radius of each disk was 1, but as the distance from the origin increased, an 'adjustment' was made to the radius of each disk, making it smaller. Care was taken to make sure a radius was never less than zero, however. |
|---|---|
| Even More: |
var adjustment = x * x + y * y;
adjustment = Math.sqrt(adjustment);
var r = 1 - .02 * (adjustment);
if (r < 0) r = .05;
The .02 factor on the adjustment was a 'fudge factor' to make everything work out ok. |
