NEW: Palette handling functions added to the VGA Morpheus graphics object

September 21st, 2009

PUB SetPalette(y,c,r,g,b)

Set color (0..3) for screen line ‘y’ to specified RGB values
PUB SetPaletteRange(y1,y2,c,r,g,b)

Set color (0..3) for screen lines ‘y1..y2’ to specified RGB values

PUB FillPalette(c,r,g,b)

Set color (0..3) for all screen lines to specified RGB values

NOTE:

R and G both must be in the range of 0 – 7

B must be in the range of 0 – 3

The new VGA object is available on the Downloads page.

Leave a Reply

You must be logged in to post a comment.