backspaces/agentscript — pull request #65 by Caroisawesome (2014-10-30 21:24:24+00:00)
Title: Color scale fix

scaleOpacity function added to agent.coffee, patch.coffee, and util.coffee. scaleOpacity multiplies existing opacity by scale value, and then clamps value between 0 and 1.

Agents in nbody model use scaleOpacity to alter their opacity to correspond with the agent's distance from the sun. Closer to the sun is more opaque, farther from the sun is more transparent.