Feature request: function to assign same colour to all colour table
Posted: Mon Apr 03, 2023 7:52 am
In my game code I import a custom pattern table and then assign the same colour to all the colour table addresses in video ram.
I then use vdp_colorizePattern() to assign specific colours to specific patterns.
The method I'm using to assign the single colour is a for loop in C. I was wondering if this could be a function in NABU-LIB. It would be similar to the clear screen function which writes a 0x00 to all nameTable addresses except you could pass in a hex value to assign the fg and bg colours.
If this function was in NABU-LIB it would simplify the cross compiling work I'm doing for the z80retro. It wouldn't limit the nabu in any way. It might even make that part of the code a wee bit faster.
If you want, I can post the code for the function. Or raise a PR...
Thanks for listening...
I then use vdp_colorizePattern() to assign specific colours to specific patterns.
The method I'm using to assign the single colour is a for loop in C. I was wondering if this could be a function in NABU-LIB. It would be similar to the clear screen function which writes a 0x00 to all nameTable addresses except you could pass in a hex value to assign the fg and bg colours.
If this function was in NABU-LIB it would simplify the cross compiling work I'm doing for the z80retro. It wouldn't limit the nabu in any way. It might even make that part of the code a wee bit faster.
If you want, I can post the code for the function. Or raise a PR...
Thanks for listening...