Sunburst Generator
Creates a radial ray pattern emanating from the center.
Usage
app.executeGenerator('drawSunburst', {
rayCount: 16,
colors: ['#FF6B6B', '#4ECDC4', '#45B7D1'],
bgColor: '#1a1a2e'
});
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
rayCount |
number | 12 | Number of rays |
colors |
array | ['#FF6B6B', '#4ECDC4'] |
Ray colors (cycles) |
bgColor |
string | '#1a1a2e' |
Background color |
animated |
boolean | true | Enable rotation animation |
Example
// Warm sunset sunburst
app.executeGenerator('drawSunburst', {
rayCount: 24,
colors: ['#f97316', '#fb923c', '#fbbf24'],
bgColor: '#1e293b'
});
Animation
When animated: true, the pattern rotates continuously via view.onFrame.