Learning how to draw things on the Agon Light

I’ve been having a bit of a play around with my Agon Light, trying to come up with some ideas for a future video. I’ve discovered it has quite a nice 320×240 64 colour video mode that has just enough pixels to be interesting.

Here’s a little thing I managed to create.

T

It started off as a little discussion with ChatGPT and ended with a Python and PyGame program that drew one spinning shape in the middle of the screen. I’m finding ChatGPT is quite good for coming up with code that I would have otherwise spent hours trying to figure out.

The code isn’t the most efficient, I’m using floating point maths all over the place – on a device with an eZ80 CPU that doesn’t have an FPU. Writing this to use fixed point maths is an exercise for future me.