glow
A soft bloom around bright areas. The voice-ring look.
Add the script once, then use the tags anywhere.
<script type="module" src="https://mmaxence.github.io/solids/solids.js"></script>
Or copy the library into your project: download solids.js from the repo and serve it yourself. No build step, no other files.
Options
| Attribute | Type | Default | Range | Description |
|---|---|---|---|---|
glow-threshold | number | 0.35 | 0 to 1 | Brightness threshold |
glow-radius | number | 14 | 2 to 40 | Radius (px) |
glow-strength | number | 0.9 | 0 to 2 | Strength |
glow-mix | number | 1 | 0 to 2 | Mix |
Put effect="glow" on a scene to process the whole canvas, or on a single object to process only that object. Chain several with spaces; they run in the order written.
License
MIT. Use it anywhere, credit appreciated.