Pixel, pixel, on the wall - who's the squarest of them all?

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
JonBrawn
Vic 20 Devotee
Posts: 225
Joined: Sat Sep 11, 2021 10:47 pm
Website: http://youtube.com/@vicenary
Location: Austin TX USA
Occupation: CPU design engineer

Pixel, pixel, on the wall - who's the squarest of them all?

Post by JonBrawn »

Wotcha!

When you are writing games or other graphics routines for your VIC-20 you'll sometimes need to compensate for the pixels being rectangular rather than square. My question is:

What aspect ratio do you assume for pixels in your code?
Working on FPGA replacement for 6560/6561
https://youtube.com/@vicenary
User avatar
chysn
Vic 20 Scientist
Posts: 1205
Joined: Tue Oct 22, 2019 12:36 pm
Website: http://www.beigemaze.com
Location: Michigan, USA
Occupation: Software Dev Manager

Re: Pixel, pixel, on the wall - who's the squarest of them all?

Post by chysn »

I think it’s about 1 2/3 wider than tall.
VIC-20 Projects: wAx Assembler, TRBo: Turtle RescueBot, Helix Colony, Sub Med, Trolley Problem, Dungeon of Dance, ZEPTOPOLIS, MIDI KERNAL, The Archivist, Ed for Prophet-5

WIP: MIDIcast BASIC extension

he/him/his
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Pixel, pixel, on the wall - who's the squarest of them all?

Post by Mike »

The pixel aspect ratio (PAR) of hires pixels on PAL is 5:3 (or 1.667:1) and on NTSC it is 3:2 (or 1.5:1).
User avatar
JonBrawn
Vic 20 Devotee
Posts: 225
Joined: Sat Sep 11, 2021 10:47 pm
Website: http://youtube.com/@vicenary
Location: Austin TX USA
Occupation: CPU design engineer

Re: Pixel, pixel, on the wall - who's the squarest of them all?

Post by JonBrawn »

Thanks!
Working on FPGA replacement for 6560/6561
https://youtube.com/@vicenary
Post Reply