Skip to content

Instantly share code, notes, and snippets.

@jonathontoon
Created October 16, 2021 02:29
Show Gist options
  • Save jonathontoon/2fa6682448c0ab8c343fb09745b5b982 to your computer and use it in GitHub Desktop.
Save jonathontoon/2fa6682448c0ab8c343fb09745b5b982 to your computer and use it in GitHub Desktop.
Concentric circles visualization used for a profile photo.
colors={1,12,3,11,10,9,4,2,8,14,7,6,0}
function _draw()
cls(1)
for i=1,13,1 do
local y=64+(i*4)-8
local r=58-(i*4)
if r==0 then
r=2
end
circfill(64,y,r,colors[i])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment