r/tinycode • u/flockaroo • Apr 19 '23
vec3 q=vec3(0,0,99),p,u,v;for(float w,d,i=0.;i++<80.;v=u,u=q,q+=(FC.rgb*2.-r.xyx)/r.x*d+vec3(sin(i),cos(i),0))for(d=w=6.;--w>0.;p=q,p.xz*=rotate2D(t+w/.8),p.xy*=rotate2D(1.),d=min(d,dot(p+sin(p)*.3,sign(p)*.3)-9.));o+=sign(.5-cross(q-u,q-v).y-fract(FC.x/9.-FC.y/7.)); //...5 tiny octahedra
86
Upvotes
View all comments
Show parent comment
2
u/bobsidian Apr 20 '23
There are many languages and environments designed for creating art through code – Processing is maybe the best-known, but there are also more specific tools like Context Free. In the past a lot of people used ActionScript (Flash), and John Maeda wrote a few books on the subject using mostly the PostScript language, which IMO remains a good option.
GLSL is quite technical and designed for a relatively narrow set of purposes, so I wouldn’t say it’s a great place to start. That said, vertexshaderart.com lets you create visuals using a subset of GLSL, without having to deal with all the related OpenGL paperwork.