Skip to main content

Color Collision Event

Intro#

Change the color of Shapes when they are involved in collisions.

UI#

Mode:

  • Fill - The Collision Event will affect the Fill Color only.
  • Stroke - The Collision Event will affect the Stroke Color only.
  • Fill and Stroke - The Collision Event will affect both the Fill and Stroke Colors.

Specific Collisions - When checked, use the Collision Numbers attribute to define which collisions are used.

Collision Numbers - Enter a value to specify which collision(s) are used to trigger the event. 0 is the first collision and use comma sperated values to include mutliple collisions. For Example, entering 0,2 would include the first and third collisions.

Fade Changes - When checked, the Shape will return to its original color.

Fade Time - Define the time (secs) it takes for a Shape to return to its original color.

Use Collision Index - When checked, each collision will add 1 to its index. This can be used, for example, in combination with a Color Array connected to the Color – each time a Shape collides its color will be change to the next color in the Array.

Color - Set the Color to change to when a Shape collides.

Shaders - Connect a Shader(s) to use when a Shape collides.

Fade to Third Color - When checked, a Shape will return to a third color rather than its original color.

Third Color - Set the Color to change to after a Shape has collided.

Third Shaders - Connect a Shader(s) to use after a Shape has collided.