Framer Classic » Colors » Generating a random color

Generating a random color

For those times when any color will do, there’s random().

cell = new Layer
    backgroundColor: Color.random()

Pro tip: If you want the random color to have a certain alpha value, you can use Framer’s 🛠 Random Color. It has an ‘opacity’ argument.

A grid with random color tiles
Download Framer project

Leave a Reply