Rainbow

The goal here is to make a function that, when supplied a value of range 0 to 1, returns the correct color of the rainbow for that position.

GraphToy: 1.0 - step(0.5, x)

Takes a value p from 0 to 1 and returns the colour from the rainbow

The rainbow color

Softened for cuteness