Example

Pixel Graphics With Transformation Matrix

6

SP4CEBAR 2022-04-22 20:33 (Edited)

I just made transformation matrices in LowRes Coder, which allow rotation and scaling of pixel images and vector images. In terms of graphics, they rely on two things: drawing lines and flood filling.

I used my oldest NX program to plot the lines. It is pretty slow, but I found a huge optimization which made it 5x faster. You can scale the image with the buttons (A: smaller, B: larger) and you can move it around with the arrows.

I also made a version with vector graphics
Press pause to switch between a vector image and a pixel image

Pixel Graphics.nx | Open in app
2022-04-23 07:40
Vector Graphics.nx | Open in app
2022-04-22 21:03
Vector Graphics.nx | Open in app
2022-04-22 20:33

SP4CEBAR 2022-04-22 21:04

Whoops... I forgot to remove the delay which I used to make the program icon


McPepic 2022-04-22 21:43

I noticed that if it goes below the screen, it glitches out; and at the top of the screen, it crashes. Is this going to be fixed? I just wanted to let you know in case you didn't.


SP4CEBAR 2022-04-23 07:29 (Edited)

I had the same issues on the vector image version (coordinates aren't restricted, so they can generate invalid memory addresses), I now restricted them, and since this program and the vector image program are the same program (aside from a certain one being replaced with a zero) It should already be fixed, I just got to upload it


SP4CEBAR 2022-04-23 07:46

Whoops... I forgot to remove the delay which I used to make the program icon... again


Log in to reply.