
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
| Name | Type | Default | Range | What it does |
|---|---|---|---|---|
| sunAz | number | 0 | 0 to 360 deg | compass direction of the Sun; the bow rises on the opposite side of the sky |
| sunAlt | number | 15 | 0 to 42 deg | height of the Sun; higher suns give a lower, flatter bow, and none shows above 42 degrees |
| strength (Can change over time) | number | 1 | 0 to 30 | how bright the bow is; 1 is a vivid bow in a dim sky, a daylight sky needs 3 to 10Can change over time |
| dropSize | number | 1 | 0.05 to 4 mm | diameter of the raindrops; big drops give vivid narrow bands, small ones a pale wide bow |
| secondary | number | 1 | 0 to 1 | the secondary bow outside the first, 0 gone, 1 its natural 43% of the primary |
| glow | number | 1 | 0 to 2 | the pale light in the rain inside the primary bow, and the dark Alexander's band between the two bows |
| saturation | number | 1.25 | 0 to 2 | how pure the colours are; 0 is a white bow |
| coverage (Can change over time) | number | 1 | 0 to 1 | how much of the arc has rain behind it; below 1 the bow breaks into patchesCan change over time |
| seed | integer | 5 | 0 to 999 | which 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.