1. INVERSE - Reply
Jean, has anybody heard you? You wrote:
> :
> gm=graphics_mode(18)
> :
> bk_color(7)
> position(28,20)
> text_color(0) -- don't work -> no text !
> puts(1,"Hello\n")
> position(28,30)
> text_color(8) -- OK it's grey
> puts(1,"Hello\n")
The first statement has merely redefined the *palette* of the background color,
still and *always* color '0', as the same as color '7' (light gray). So when
you use it later on as the text color, you are writing with invisible ink: light
gray on light gray...
Try something like
:
object junk
junk = graphics_mode(18)
junk = palette(0, palette(7,{0,0,0}))
position(28,20)
text_color(7)
puts(1,"Hello")
:
It switches palettes of the two colors; the color number '7' is now black, and
you can use it as the text color to achieve the desired effect. Jiri