Hi All
I've been converting some old ZX Spectrum type-ins into Blitz+, and have made my own routine for taking the original DATA statements for user defined graphics (UDG's) and making a 16x16 (24x24 or any multiplier of 8 based) sprite.
I create a new imagebuffer, read the data statement, convert the number into binary and then fill in a 2x2 (3x3 etc) square in that frame if its a "1" and make it blank /transparent colour for "0".
The problem is, assume my background colour is black (for "0" and foreground (for "1" is white) - can I replicate the old Spectrum "INK" command without having to make a copy of the image in each available colour?
I'm thinking copypixel type commands, but if the colour changes often for one UDG then I don't want to slow the program right down to draw it in one colour, replace white with blue and so on.
Can anyone help? When I'm back at my home PC, will upload the function if anyone's interested.
I've been converting some old ZX Spectrum type-ins into Blitz+, and have made my own routine for taking the original DATA statements for user defined graphics (UDG's) and making a 16x16 (24x24 or any multiplier of 8 based) sprite.
I create a new imagebuffer, read the data statement, convert the number into binary and then fill in a 2x2 (3x3 etc) square in that frame if its a "1" and make it blank /transparent colour for "0".
The problem is, assume my background colour is black (for "0" and foreground (for "1" is white) - can I replicate the old Spectrum "INK" command without having to make a copy of the image in each available colour?
I'm thinking copypixel type commands, but if the colour changes often for one UDG then I don't want to slow the program right down to draw it in one colour, replace white with blue and so on.
Can anyone help? When I'm back at my home PC, will upload the function if anyone's interested.