◀ angled-rainbow

Angled Rainbow

Colors are just numbers, and numbers are just vibes ✧⁺(◕ᴗ◕✿)

← 02-intro-challenges-1

#1 on the code size leaderboard!

Angled Rainbow

GridCode SizeLeaderboardCyclesLeaderboardDate
7x7x710🏆 #14.286#89412026-02-23

Solution

return z==0 and x+y+10

How it works

A flat wall at z==0 where each voxel’s color is x+y+10. The coordinates range from -3 to 3, so x+y ranges from -6 to 6, offset by 10 gives colors 4 through 16. Wrapping handles the rest. The and short-circuit replaces if/then/end for free.