stankot 4 days ago

Tixy is amazing! I built something very similar:

https://muffinman.io/pulsar/

I wanted to create animations for my LED matrix screen, and I couldn’t find tixy anywhere. Only after I built pulsar I found it again.

Another similar project is https://sliderland.blinry.org/ which uses HTML sliders.

Fun stuff!

  • leptons 2 days ago

    If you haven't seen dwitter yet, you really should head over to https://www.dwitter.net

    • virtualritz 2 days ago

      This is awesome. But it needs a better renderer.

      Almost every animation/image there suffers from horrible moiré because a normal browser canvas was not meant for this. Fine line art needs supersampling and high quality filtering.

      • leptons 13 hours ago

        You're complaining about a small subset of "dweets" there. There are thousands of great visuals there that are not "fine line art" and do not suffer from what you described. And no, I do not think it "needs a better renderer" as high quality "rendering" is not the point of dwitter.net, the point is producing amazing things in 140 characters of javascript.

jakegmaths 4 days ago

I loved tixy when I first discovered it a few years ago so created this https://www.mathsuniverse.com/tixy (with permission from the original author) with puzzles to solve on the tixy grid. I use it with my computer science students who get really into it.

  • xunil2ycom 17 hours ago

    I've been programming for over 40 years, and I can say this is the most fun way I've experienced to learn this kind of thing. It really is fun.

  • PebblesRox a day ago

    My 5yo did great on these until he hit #7 and got stuck! I’m helping him with syntax but trying to hold back from giving conceptual hints for now.

    I love the instant visual feedback!

  • frogarden 2 days ago

    Why isn't "(sin(i) * (x > 7)) - (i == 5) + (i == 20) + 0.5 * (i == 32)" a solution to puzzle 36?

  • acomjean 4 days ago

    Fun. Thanks!

    Works well on phone. The phone keyboard is a bit clumsy but it works (that’s a phone issue)

  • chrisjj 4 days ago

    > In computer graphics, the origin (0, 0) is top-left rather than bottom-left

    Umm...

    • LocalH 4 days ago

      What's wrong with that statement? It has historically and traditionally been true for raster displays, even if there do exist ways to use standard Cartesian-style coordinates with a computer.

      • taneq 2 days ago

        There top left has usually been (0, 0) for hardware pixel coordinates (although even then there’s plenty of exceptions, e.g. mode 13h scrolling) but as a blanket statement about computer graphics in general it’s misleading.

    • jakegmaths 4 days ago

      I'm struggling to see the problem with this statement, other than maybe to add in the word "usually". My students will know of graphs in maths where the origin is always bottom left. When working with HTML canvas and every other computer graphics situation I've worked in, it's top left instead.

      • ForOldHack 4 days ago

        "PostScript uses a coordinate system where the origin is at the bottom-left corner of the page, with the x-axis increasing to the right and the y-axis increasing upwards."

        Oscilloscopes use middle-left.

        Unreal engine and SketchUp use Screen middle with xy increasing to the right.

        in AutoCAD, the user coordinate system is 1/3 of the screen to the left for the origin, with X increasing to the right, and Y increasing upwards.

        Almost all raster displays, and memory based programs assume top left, because that is how it was done first - counter intuitive.

        • Lerc 3 days ago

          It it not counter intuitive and the decision extends far earlier than the first displays.

          A raster image onscreen is displayed in the order that the data appears when written down. It stands to reason that a data depiction should be in the same orientation as the display orientation. Displays were created by people who read from left to right, top to bottom. If the displays did not follow that order. images would be flipped or rotated when displayed in a data form.

          The first pixel written to the display is in the top left because we read from the top left. If writers of another language had have popularised the text, perhaps things might have been different.

          • Timwi 3 days ago

            Why does the BMP file format store the image upside-down though?

      • 6P58r3MXJSLi 15 hours ago

        > When working with HTML canvas and every other computer graphics situation I've worked in, it's top left instead.

        In OpenGL is (center, center)

Jyaif 4 days ago
  • Lerc 3 days ago

    I managed to come up with a suffix that displays outputs of my own weird thing in a tixy style.

    https://c50.fingswotidun.com/show/?code=28*ddx*%24%3Ay*%243o...*

    Quite a fun challenge.

    The Suffix is 2<02->P8dus:vs

    which is

      2<02->    clip to -2 to +2
    
      P8*d  2 copies of 8*PI
    
      u*s   8 horizontal sine 
    
      :v*s  8 vertical sine
    
      *  mix horz and vert to make the tixy circles.
continuational 4 days ago
fulafel 4 days ago

Cool stuff.

Learned by scrolling far enough right in view source: The last line is editable and eval'd.

Request to author: keep the newlines.

relaxing 4 days ago

A lot of these tricks I first learned from Noah Spurrier’s acidwarp.exe VGA demos in the 90s.

Now I’m wondering who first published these trig function pixel paint tricks. Somewhere between HAKMEM munching squares and the 80s demoscene?

nopakos 4 days ago

That's fantastic!

I would love something like this in my living room. Especially if it is not just a screen. Maybe a grid of 256 screens? Or inflating balloons? Something easier to make? Just on/off big pixels?

dr_kiszonka a day ago

I am impressed by both the website and how good people here are at trig.

skrebbel 3 days ago

Wow this is extremely well done! All the defaults are chosen so well to make simple inputs get pretty results. The interpretation of the result value, the scale of `t`, the colors, it's all not trivial at all to get right! Hats off

xuhu 2 days ago

Is it possible to create a tixy QR code that contains a link to itself ?

ninetyninenine 4 days ago

Is there a pattern or animation you can manually animate on those dots that can’t be represented by an equation?

  • echoangle 2 days ago

    If the animation is finite in time and with finite time steps and sample points, I think no. Because you can fit a polygon through any set of points if the polygon has enough dimensions.

tgv 4 days ago

I’m considering that as a load screen animation. Bunch of different functions, and the user will be entertained.

spencerflem 4 days ago

this is beautiful. i love it so much :)

chrisjj 4 days ago

> // hit "enter" to save in URL

There's no enter on Android Chrome on phone.

  • dtagames 4 days ago

    The enter key on the phone keyboard works if you tap that message.

GenshoTikamura 4 days ago

Would be cool to implement this physically as an array of iris diaphragms

yusina 3 days ago

Isn't i == x + 16*y? Why is it needed?

  • stefanfisk 3 days ago

    To make the code cleaner I’d assume.

    • yusina 2 days ago

      I got the impression though that i is the least useful of the bunch.

Sharlin 4 days ago

Shame that 32 characters is a bit too few to make a raycaster. 128 would be quite enough I think.

nicman23 2 days ago

is this just shaders but not?

ur-whale 2 days ago

Why is the "=>" going in the wrong direction ?

xanlack 4 days ago

really impressive, keep up the good work