AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
38 stars 17 forks source link

add command to set pen width #135

Closed stevesims closed 7 months ago

stevesims commented 8 months ago

There's a VDU code in some more advanced VDU systems that sets the pen width for line drawing

vdp-gl can support this, so we may as well implement the command :grin:

BBC BASIC for Windows and the SDL version of BBC BASIC support this using VDU 23,23,t,0,0;0;0; which sets the pixel width of lines from PLOT commands to be t. We should implement this. (we probably don't need the trailing zeros)

stevesims commented 7 months ago

vdp-gl supports picking rounded end-caps for wider lines. those would be problematic for some of the new drawing modes being added in #148

should not be a show-stopper though - the solution is to just not allow different end-caps to be chosen :grin:

stevesims commented 7 months ago

rounded end-caps can potentially be added in once we support drawing semi-circles, if we choose to do so