spiral - options
- stretch
- size
- thickness
- cap
- inset
- playheadColor
- playheadLength
- playheadThickness
- padding
- steady
- activeColor
- inactiveColor
- colorizeInactive
- fade
- logSpiral
Displays a spiral visual.
note("c2 a2 eb2")
.euclid(5,8)
.s('sawtooth')
.lpenv(4).lpf(300)
._spiral({ steady: .96 }) | parameter | type |
|---|---|
| options |
|
| Object containing all the optional following parameters as key value pairs: | |
| stretch |
|
| controls the rotations per cycle ratio, where 1 = 1 cycle / 360 degrees | |
| size |
|
| the diameter of the spiral | |
| thickness |
|
| line thickness | |
| cap |
|
| style of line ends: butt (default), round, square | |
| inset |
|
| number of rotations before spiral starts (default 3) | |
| playheadColor |
|
| color of playhead, defaults to white | |
| playheadLength |
|
| length of playhead in rotations, defaults to 0.02 | |
| playheadThickness |
|
| thickness of playheadrotations, defaults to thickness | |
| padding |
|
| space around spiral | |
| steady |
|
| steadyness of spiral vs playhead. 1 = spiral doesn't move, playhead does. | |
| activeColor |
|
| color of active segment. defaults to foreground of theme | |
| inactiveColor |
|
| color of inactive segments. defaults to gutterForeground of theme | |
| colorizeInactive |
|
| wether or not to colorize inactive segments, defaults to 0 | |
| fade |
|
| wether or not past and future should fade out. defaults to 1 | |
| logSpiral |
|
| wether or not the spiral should be logarithmic. defaults to 0 | |