/*Evan Pon cs184-ej M 3-4 */ surface dots( float size = 0.5, spacing = 0.5; color background = color "rgb" (1, 0, 1), dotcolor = color "rgb" (0, 1, 0)) { point p = (size, size, 0); float smod = mod(s, (2 * size + spacing)), tmod = mod(t, (2 * size + spacing)), x = smod - xcomp(p), y = tmod - ycomp(p), radius = sqrt ((x * x) + (y * y)); color c = background; if (radius < size) { Ci = dotcolor; } else { Ci = background; } }