bk_color and BLACK

new topic     » topic index » view thread      » older message » newer message

I've asked this question to Robert a while back, but I'm not sure I really
understand this. When I saw Jiri's comment about setting the palette(), the
question returned.

When I'm in graphics mode, the color BLACK is apparently not the color BLACK
at all, but the color of the background. For example, if I do somthing like
the following:

   bk_color( BLUE )
   draw_line( BLACK, { { 1, 1 }, {10, 10} )

My *intent* was to set the background to blue, and draw a black line on it.
Instead, I draw an invisible line, since BLACK really maps to the background
color, and setting the background to BLUE changes the color BLACK to blue.

How does one go about setting the background to another color without
altering the color BLACK? The method should be reasonably fast, as I
currently doing a draw_bitmap() type of call, which is *slow*...

Thanks.

 -- David Cuny

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu