There is a small rectangle moving across the screen and leaving a trail.
The coordinates of the curve are described by two sine functions scaled to the full dimensions of the screen.
When the factor for the sine arguments are coprime, we get more irregular shapes.
Once we have the (x,y) coordinates of the current point on the curve, we get the last color of the pixels via `pix` function.
We add 1 the the previous color values and write it back again.
To change the color palette, we overwrite the bytes containing the palette in memory at the start of the program.
These values reside at memory `16320` and contain 16 RGB values.
We set this all to grey scale.
Here is the resulting image:

No comments:
Post a Comment