Splashery
Rainbow, a still.
Playground

Rainbow

Weather & Fire, built from a recipe. Row 27, column 9 of the code.

A rainbow appears when sunlight shines into falling raindrops.

Shelf
Weather & Fire
Kind
Built from a recipe
Sound
Yes
Licenses
Own work (made in the page)

How to play

Tap it to draw the rainbow again, color by color.

Its controls

ControlKindRangeStart
Draw the rainbowTap
DrawButton

About it

A rainbow appears when sunlight shines into falling raindrops. Each drop bends the light, splits it into its colors and bounces it back out, so you see a rainbow when the Sun is behind you and rain is in front. Its colors always go in the same order: red on the outside, then orange, yellow, green, blue and violet on the inside.

Tap it and the arc blinks away, then draws itself again color by color, red first, each band sweeping from one cloud to the other behind a bright little pen. Then sparkles burst from both clouds. Seen from a plane, a rainbow can be a whole circle.

Details

Splats
Opens at 200,000 at Mid Detail, 48,921 at Low, and up to 1,000,000 at Max

Sources and credits

Made in Splashery. Its code is MIT.

Share it

The back of the picture is this page's QR code: flip it, and point a phone at it. This link opens it in the Playground. To put it on your own page, add the element and one script tag. Every option.

https://splashery.app/play/?toy=rainbow
<script type="module" src="https://splashery.app/play/src/element.js"></script>
<splashery-toy toy="rainbow"></splashery-toy>

Nearby in the collection