New to postcarts. I'd love to see a shorter version to learn from!
It's meant to be a slice of hills but it looks more like a ribbon.
(272 chars)
q=pal q(1,-15,1)q(2,1,1)q(3,-13,1)q(4,3,1)q(5,-5,1)q(6,11,1)q(7,-6,1)q(8,10,1)fillp(23130)h=function(x,y,a,b,c)line(x,y,a,b,c)line(x+1,y,a+1,b,c)end::d::t=time()/4cls(1)for p=-21,149do l=sin(p/100+t)v=8-l*6.9h(p-(p-64)/4,l*10+48,p,l*10+80,ceil(v/2)*17+v%2)end flip()goto d |
hey, cool effect. I tried scraping off some chars here is my version:
pal({-15,1,-13,3,-5,11,-6,10},1)fillp(23130)function d(o,n,d,...)line(o,n,d,...)line(o+1,n,d+1,...)end::o::for f=-21,149do o=sin(f/100+t()/4)n=8-o*6.9d(f-(f-64)/4,o*10+48,f,o*10+80,ceil(n/2)*17+n%2)end?"⁶1⁶c1"
goto o |
The changes I made where:
- changed the pal to the table format
- reduced the arguments using ...
- combined the cls(1) with the flip() (neat trick I learned from one of zeps tweetcarts)
- removed non-used Time variable and used the t() short version
Now I am interested as well, if anyone can lower it even further please share it :)
[Please log in to post a comment]




