Replies: 2 comments 2 replies
-
The color parameter is just two bit, so the four possible color values of multicolor mode. Pattern is an array of 8 bytes that is used to fill the color 8x8 cell. So the first byte of the pattern will be used for each eigth row. With multicolor mode the pattern for a single row (one byte) consists of four 2bit color values. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Great, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been going through the source, but the light bulb just isn't coming on -- what exactly does the 8-bit "color" param do in calls like:
bmmcu_rect_fill()
andbmmcu_line()
? I've been experimenting, and it looks like some bits determine which color to use out of the defined multicolor registers, and some different bit patterns, but it's not clear what's what.Does anybody have the details of exactly what this param does?
P.S. love oscar64 so far! I've come across a few bugs here & there, but it generally produces great (and pretty speedy!) 6502 code. Thanks for sharing this!
Beta Was this translation helpful? Give feedback.
All reactions