
2 changed files with 119 additions and 0 deletions
@ -0,0 +1,119 @@ |
|||
pico-8 cartridge // http://www.pico-8.com |
|||
version 29 |
|||
__lua__ |
|||
|
|||
-- This looks really cool if you don't randomize b |
|||
-- b=a*2 |
|||
|
|||
-- pal({137,140,136},1) |
|||
-- ::_:: |
|||
-- cls() |
|||
-- a=-t()/6 |
|||
-- srand(0) |
|||
-- for c=0,22 do |
|||
-- for r=0,22 do |
|||
-- b=a*2 |
|||
-- d=max(0,2*sqrt((11+sin(a)*8-c)^2+(11+cos(a)*6-r)^2)-8) |
|||
-- x=c*6+sin(b)*d |
|||
-- y=r*6+cos(b)*d |
|||
-- s=6-d/8 |
|||
-- rectfill(x,y,x+s,y+s,1+c%2+r*3%2) |
|||
-- end |
|||
-- end |
|||
-- flip()goto _ |
|||
-- --#tweetcart #pico8 #pixelart |
|||
|
|||
|
|||
pal({137,140,136},1) |
|||
::🧩:: |
|||
cls() |
|||
a=-t()/6 |
|||
srand(0) |
|||
for c=0,22do |
|||
for r=0,22do |
|||
b=rnd()+a*2 |
|||
d=max(0,2*sqrt((11+sin(a)*8-c)^2+(11+cos(a/2)*6-r)^2)-8) |
|||
x=c*6+sin(b)*d |
|||
y=r*6+cos(b)*d |
|||
s=6-d/8 |
|||
rectfill(x,y,x+s,y+s,1+c%2+r*3%2) |
|||
end |
|||
end |
|||
flip()goto 🧩 |
|||
--#tweetcart #pico8 #pixelart |
|||
|
|||
|
|||
-- pal({137,140,136},1) |
|||
-- ::_:: |
|||
-- cls() |
|||
-- s=6 |
|||
-- a=-t()/6 |
|||
-- px=11+sin(a)*8 |
|||
-- py=11+cos(a/2)*6 |
|||
-- srand(0) |
|||
-- for c=0,22 do |
|||
-- for r=0,22 do |
|||
-- b=rnd()+a*2 |
|||
-- d=sqrt((c-px)^2+(r-py)^2)-4 |
|||
-- o=d*2 |
|||
-- if(o<0)o=0 |
|||
-- tx=c*s+sin(b)*o |
|||
-- ty=r*s+cos(b)*o |
|||
-- s2=s-o/8 |
|||
-- rectfill(tx,ty,tx+s2,ty+s2,1+c%2+r*3%2) |
|||
-- end |
|||
-- end |
|||
-- flip()goto _ |
|||
-- --#tweetcart #pico8 #pixelart |
|||
|
|||
|
|||
--pal({137,140,136,10},1) |
|||
|
|||
-- ::_:: |
|||
-- cls() |
|||
-- s=6 |
|||
-- a=-t()/6 |
|||
-- px=11+sin(a)*6 |
|||
-- py=11+cos(a/2)*6 |
|||
-- srand(0) |
|||
-- for c=0,22 do |
|||
-- for r=0,22 do |
|||
-- b=rnd()+a*2 |
|||
-- d=sqrt( (c-px)^2+ (r-py)^2) - 4 |
|||
-- o=d*2 |
|||
-- if(o<0)o=0 |
|||
-- tx=c*s+sin(b)*o |
|||
-- ty=r*s+cos(b)*o |
|||
-- rectfill(tx,ty,tx+s,ty+s, 12+(c%2+r%3)) |
|||
-- end |
|||
-- end |
|||
|
|||
-- circfill(px*s,py*s,3,7) |
|||
|
|||
-- flip()goto _ |
|||
-- --#tweetcart #pico8 #pixelart |
|||
|
|||
-- ::_:: |
|||
-- cls() |
|||
-- s=4 |
|||
-- a=-t()/6 |
|||
-- px=64+sin(a)*40 |
|||
-- py=64+cos(a/2)*40 |
|||
-- srand(0) |
|||
-- for x=0,128,s do |
|||
-- for y=0,128,s do |
|||
-- r=rnd()+a*2 |
|||
-- --d=abs(x-px)+abs(y-py)-40 |
|||
-- d=sqrt( (x-px)^2+ (y-py)^2) - 20 |
|||
-- o=d/2 |
|||
-- if(o<0)o=0 |
|||
-- tx=x+sin(r)*o |
|||
-- ty=y+cos(r)*o |
|||
-- rectfill(tx,ty,tx+s,ty+s,x+y) |
|||
-- end |
|||
-- end |
|||
|
|||
-- --circfill(px,py,3,7) |
|||
|
|||
-- flip()goto _ |
|||
-- --#tweetcart #pico8 #pixelart |
After Width: | Height: | Size: 2.9 MiB |
Loading…
Reference in new issue