{"id":3316,"date":"2017-09-25T00:59:29","date_gmt":"2017-09-24T22:59:29","guid":{"rendered":"http:\/\/hintz.bplaced.net\/en\/?p=3316"},"modified":"2023-03-04T23:24:01","modified_gmt":"2023-03-04T22:24:01","slug":"despiralisierende-spiralenenspiraling-spirals","status":"publish","type":"post","link":"http:\/\/hintz.bplaced.net\/de\/2017\/webgl\/spiraling-spirals\/","title":{"rendered":"Spiralisierende Spiralen"},"content":{"rendered":"<p><\/p>\n<p class=\"webgl\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/hintz.bplaced.net\/images\/2017\/09\/Spirals.jpg\" width=\"620\" height=\"620\" \/><a href=\"https:\/\/glslsandbox.com\/e#42636.11\"><canvas width=\"620\" height=\"620\"><script type=\"x-shader\/x-vertex\">attribute vec2 position; void main() { gl_Position = vec4(position, 0, 1); }<\/script><script type=\"x-shader\/x-fragment\">\n#ifdef GL_ES\nprecision mediump float;\n#endif\n\/\/ modified 2017-09-24, Spiraling Spirals by @hintz\nuniform float time;\nuniform vec2 mouse;\nuniform vec2 resolution;\nvoid main()\n{\n\tvec2 r = resolution,\n\to = (gl_FragCoord.xy - r*.5) \/ r.y;\n\to = vec2(length(o), -atan(o.x,o.y)); \n\to.x += 2. * o.y * .031830988618379;\n\to.x = mod(o.x, .2) - .1;\n\tvec4 s = .1*cos(1.6*vec4(0,1,2,3) + time + o.y + .4*sin(o.y) * sin(time)*2.),\n\te = s.wxyz,\n\tf = min(o.x-s,e-o.x);\n\tgl_FragColor = dot(clamp(f*r.y,0.,1.), 35.*(s-e)) * ((s-.15));\n\tgl_FragColor.a = 1.;\n}\n<\/script><\/canvas><\/a><\/p>\n<p>Es is an der Zeit, wieder mal etwas WebGL zu machen. Und hier ist es. Spiralisierende Spiralen mit einen Minimum an Code.<\/p>","protected":false},"excerpt":{"rendered":"<p>Es is an der Zeit, wieder mal etwas WebGL zu machen. Und hier ist es. Spiralisierende Spiralen mit einen Minimum an Code.<\/p>\n","protected":false},"author":1,"featured_media":3321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[144],"tags":[32,168,147,170,145,189],"_links":{"self":[{"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/posts\/3316"}],"collection":[{"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/comments?post=3316"}],"version-history":[{"count":9,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/posts\/3316\/revisions"}],"predecessor-version":[{"id":3459,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/posts\/3316\/revisions\/3459"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/media\/3321"}],"wp:attachment":[{"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/media?parent=3316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/categories?post=3316"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hintz.bplaced.net\/de\/wp-json\/wp\/v2\/tags?post=3316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}