# teaching machines

## Benzene

Over Thanksgiving I added per-vertex coloring to Madeup. No longer are we bound to a single color for the entire model!

To celebrate, I fused together a benzene ring.

Benzene. C6H6. Known by the state of California to cause cancer.

radius = 5
nsides = 30
outerScale = 1.85

x = radius * cos degrees
y = radius * sin degrees
moveto x, y, 0
end

for i to 360 by 60
.rgb = {1, 0, 0}

.rgb = {1, 1, 1}
end
spheres

.rgb = 3 of 0.7
for i through 360 by 60
end