Advanced
Draw a soft orange circle
Draw an orange circle (vec3(1.0, 0.42, 0.17)) of radius 0.3 in the middle of the plane, with black outside. Use length(vUv - 0.5) and smoothstep so the rim is soft.
What Check tests
- The centre is orange
- The corner is black
- The rim is soft: a pixel near the edge is between black and orange
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.