1. 86
  1. 12

    I’ve never written a demoscene program before, but while trying this tool out I think I figured out some basic techniques. I’d say this tool is great for learning due to its approachability.

    Here’s what I made:

    Tip: check out the documentation of the Math object and the bitwise operators for inspiration.

    1. 2

      After further experimentation, I made some more:

    2. 6

      There are some really great examples in this twitter thread: https://twitter.com/v21/status/1323403680922718208

      1. 6

        For those with low tolerances:

        https://nitter.net/v21/status/1323403680922718208

      2. 5

        For developers who have trouble wrapping their head around working with fragment shaders, this is the most succinct and complete explanation I have seen so far. EDIT: specifically making shapes with fragment shaders.

        1. 3

          I see; I hadn’t known that fragment shaders (also called pixel shaders) were so similar. I found this page about drawing shapes with shaders: The Book of Shaders: Shapes. A lot of those techniques could be used in tixy.land.

        2. 4

          I like https://tixy.land/?code=sin%28%28i%2Bt%29**%281%2Bt*1e-3%29%29 because it changes its appearance a few times before eventually collapsing into flashing mush.

          https://tixy.land/?code=%28t%26x%261%29-%28t%26y%261%29 does an alternating blinky pattern

          https://tixy.land/?code=%28%28t*4%25i%29*2-1 is so simple it feels like cheating but it is a visual prime tester. :)

          Also I suggested the “art” tag. ❤️

          1. 1

            Nice examples!

            Visual prime tester URL has unbalanced brackets. Needs an ending %28 or to lose the %28 at the start :)

            1. 2

              Thanks! I think somehow I managed to accidentally paste a WIP version of that one. The effect I was going for was more like https://tixy.land/?code=%28%28t*2%29%25i%29*2-1

          2. 3

            sin(t) * (ceil((x * y) / 2) / t) gives a really cool “galaxy quadrant dying out” effect. This is fun.

            1. 2

              Link for convenience: sin(t) * (ceil((x * y) / 2) / t)

            2. 2

              I’m not great at this stuff. this is the best I could come up with https://tixy.land/?code=1%2Fcos%28t%29*sin%28t%29%2Fx%2Fy

              1. 2

                This is honestly fantastic. (sin(t/i)+tan(i/t))/(x*y)