ripple
Rings of distortion travel out from the center, like a drop in water.
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 |
|---|---|---|---|---|
ripple-amplitude | number | 6 | 0 to 16 | Amplitude (px) |
ripple-frequency | number | 6 | 1 to 24 | Rings across the scene |
ripple-speed | number | 0.8 | 0 to 3 | Speed (rings per second) |
ripple-mix | number | 1 | 0 to 2 | Mix |
Put effect="ripple" 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.