Skip to content
Clipwright
Menu
Rainbow: a frame from a film that uses it.
SkyNew

Rainbow

A rainbow opposite the Sun: a primary bow at 42 degrees, red outside, an optional fainter secondary at 51 with its colours reversed.

Version
1.0.0
Added
23 October 2026
Films
Not used in a film yet

Parameters

NameTypeDefaultRangeWhat it does
sunAznumber00 to 360 degcompass direction of the Sun; the bow rises on the opposite side of the sky
sunAltnumber150 to 42 degheight of the Sun; higher suns give a lower, flatter bow, and none shows above 42 degrees
strength (Can change over time)number10 to 30how bright the bow is; 1 is a vivid bow in a dim sky, a daylight sky needs 3 to 10Can change over time
dropSizenumber10.05 to 4 mmdiameter of the raindrops; big drops give vivid narrow bands, small ones a pale wide bow
secondarynumber10 to 1the secondary bow outside the first, 0 gone, 1 its natural 43% of the primary
glownumber10 to 2the pale light in the rain inside the primary bow, and the dark Alexander's band between the two bows
saturationnumber1.250 to 2how pure the colours are; 0 is a white bow
coverage (Can change over time)number10 to 1how much of the arc has rain behind it; below 1 the bow breaks into patchesCan change over time
seedinteger50 to 999which patches of the arc are lit when coverage is under 1

Use it in a film

film.js
elements: { 'rainbow': { sunAz: 0, sunAlt: 15 } }

Use it from your agent

Ask your agent to put it in a film. It finds the element by name.