Difficulty |
3 |
Prerequisites |
The goal of this extension is to replicate these results (a spiral pattern) without help. You can try to solve this extension partially for partial rewards.
1. Spiral Thickness
The thickness of the spiraling arm must be settable.
var t = Animations.animate(0.1, 0.4, seconds(3))[now]
spiral([ "thickness": t ])
2. Arm Count
We should be able to choose the number of arms.
spiral([ "thickness": 0.1, "arms": arms ])
arms |
Result |
---|---|
1 |
![]() |
2 |
![]() |
3 |
![]() |
4 |
![]() |
3. Spacing
The spacing between arms must be a parameter too.
spiral([ "thickness": 0.1, "spacing": spacing ])
4. Evaluation
Render the following scene:
|
Render the following scene:
|
Render the following scene:
|