(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43942881

Hacker News 用户被 Tixy.land 迷住了,这是一个用基本数学规则创建的简单的 16x16 点动画。一些用户分享了他们自己类似的项目和作品,包括一个益智方格、一个带有可编程画笔的绘图应用程序,甚至还有增加了诸如子表达式求值等功能的克隆版本。讨论中包含各种用户生成的动画和原始动画的变体,突出了该平台的创造性潜力。一些用户对底层概念进行了深入的解释。一个有争议的点是计算机图形学中原点 (0,0) 位于左上角的说法。一些用户就其准确性进行了辩论,尤其是在不同应用程序中的坐标系方面。评论区提供了一个指向之前关于模式讨论的链接,以及一些与相关工具和项目的链接。


原文
Hacker News new | past | comments | ask | show | jobs | submit login
A simple 16x16 dot animation from simple math rules (tixy.land)
345 points by andrewrn 1 day ago | hide | past | favorite | 72 comments










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!



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.


Reminds me of [Replicube](https://store.steampowered.com/app/3401490/Replicube/), which has released recently and does the same kind of thing in 3D.


This is a cool way to teach!

I was blown away by the little functions at first and I too made a clone to experiment with calculang [1].

I added an evaluation feature (F9) so you can select sub-expressions and see what they do, which was helpful to figure out some patterns (video in [2])

[1] https://calculang-editables.netlify.app/tixyish

[2] https://www.youtube.com/watch?v=uXUd_-xrycs



Fun. Thanks!

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



Well done!


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

Umm...



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.


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.


"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.



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.







Basically https://www.shadertoy.com/ for dummies. Right up my alley haha ;)


I made a drawing app with programmable brushes inspired by tixy:

https://fig.sonnet.io

It’s pretty fun because the shape dynamics are time, and not pressure/tilt based, so you need to draw in a rhythm.

Here’s how they work and how they’re implemented:

https://untested.sonnet.io/notes/fig-tree-brushes/



The author is Martin Kleppe (@aemkei on X), famous for his incredible quines and other JS magic.

https://aem1k.com/world/

https://aem1k.com/qlock/









Previous discussion with patterns in comments: https://news.ycombinator.com/item?id=24974534


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






i don't even know whats happening but its mesmerizing https://tixy.land/?code=sin%28i*t%2F128%29


It draws a slightly tilted sine wave gradient (i=16y+x so atan(1/16) ≈ 3.6°) whose frequency increases until it starts to alias due ro the limited resolution (cf. Nyquist sampling theorem) and exhibit what’s essentially the wagon wheel effect [1]. Nice illustration of signal processing fundamentals!

[1] https://en.m.wikipedia.org/wiki/Wagon-wheel_effect



I love it! Here's a windscreen wiper.

https://tixy.land/?code=sin%28t%29*%281%2Bx%2By%29-x









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?



https://tixy.land/?code=%28%28x%2Bt%29%5E%28t%7Cy*t%29%29%25...

Strobe warning, especially after about 20 seconds.



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






Stretchy curtain:

(sin(t) * sin(t) + 0.2) * (sin(y / (cos(t) * cos(t) + 0.7)) + sin(x))





Similar project, but based on Forth: https://forthsalon.appspot.com/


If you like this, also check 3d animations on a led cube. https://m.youtube.com/watch?v=odFljHeCNaY




The classic: sin(x/2+t)+cos(y/2+sin(t))






Cool! I can see it being usable as a spinner as well. How did you come up with these magic numbers?








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.


This one is sick!


oh yes, highly recommended! :)




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.



> The last line is editable and eval'd

Right. https://tixy.land/?code=alert(%22foo%22)



That’s not nice


What's not nice is not sanitizing inputs.




When this was first released, I put together an homage to the music video for “Fell In Love With A Girl” by The White Stripes.

https://tixy.land/?code=floor(t%256)%20%3D%3D%3D%200%20%3F%0...







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


> // hit "enter" to save in URL

There's no enter on Android Chrome on phone.



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




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




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


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?



I feel so dumb. How can I make this zoom centered on the grid?

https://tixy.land/?code=Math.sin%28x*t%29%2BMath.cos%28y*t%2...





this is beautiful. i love it so much :)


really impressive, keep up the good work


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


great






Consider applying for YC's Summer 2025 batch! Applications are open till May 13


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



Search:
联系我们 contact @ memedata.com