Isn't i == x + 16*y? Why is it needed?
To make the code cleaner I’d assume.
A simple 16x16 dot animation from simple math rules
81–90 of 105 posts
Re: A simple 16x16 dot animation from simple math rules
#82Re: A simple 16x16 dot animation from simple math rules
#83Re: A simple 16x16 dot animation from simple math rules
#84Stretchy curtain: (sin(t) * sin(t) + 0.2) * (sin(y / (cos(t) * cos(t) + 0.7)) + sin(x))
Re: A simple 16x16 dot animation from simple math rules
#85X Plus Star https://tixy.land/?code=%28sin%28t*0.8*-sqrt%28%28x-7.5%29**...
Sin Sin https://tixy.land/?code=sin%28sin%28i*sin%28t%2F10%29%29%29
Re: A simple 16x16 dot animation from simple math rules
#86Earlier quoted context omitted.
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…
Why does the BMP file format store the image upside-down though?
Why are device-independent bitmaps upside down? Raymond Chen https://devblogs.microsoft.com/oldnewthing/20210525-00/?p=10...
I think you had to wait for WinG or maybe even DirectX to get normal 1:1 mapping.
OpenGL is so old it had same stupid ideas about coordinates.
Re: A simple 16x16 dot animation from simple math rules
#87Is there a pattern or animation you can manually animate on those dots that can’t be represented by an equation?
Re: A simple 16x16 dot animation from simple math rules
#88Earlier quoted context omitted.
> 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.
Re: A simple 16x16 dot animation from simple math rules
#89Earlier quoted context omitted.
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.
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.
Re: A simple 16x16 dot animation from simple math rules
#90I 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...