1. Backcolor graphics mode DOS32
- Posted by j.f.deneken at hccnet.nl Mar 29, 2001
- 433 views
------=_NextPart_000_0018_01C0B85E.D61DFCE0 charset="iso-8859-1" Hello, I'm relatively new at Euphoria, so maybe this is a trivial question. However, help is appreciated! Given the following coding (DOS32): include graphics.e object dummy dummy =3Dgraphics_mode(18) =20 clear_screen() bk_color(BLUE) polygon(BRIGHT_WHITE,1,{{60,150},{200,150},{200,285},{60,285}}) position(11,09) text_color(MAGENTA) ?(12345)=20 This results in a magenta number on a blue background inside a white rectangle. I would like to have the number in magenta on the white background=20 of the rectangle, without losing the blue background of the rest of the screen. Is that possible at all ? Thanks for the help! Fritz Deneken. ------=_NextPart_000_0018_01C0B85E.D61DFCE0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> trivial question.<BR>However, help is appreciated!<BR>Given the = following coding=20 (DOS32):</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> include=20 graphics.e<BR> object dummy<BR> = dummy=20 =3Dgraphics_mode(18) <BR> =20 clear_screen()<BR> = bk_color(BLUE)<BR> =20 =20 position(11,09)<BR> = text_color(MAGENTA)<BR> =20 ?(12345) </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>This results in a magenta number on a = blue=20 background inside a<BR>white rectangle.<BR>I would like to have the = number in=20 magenta on the white background <BR>of the rectangle, without losing the = blue=20 background of the rest of<BR>the screen.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Is that possible at all ? Thanks for = the=20 help!</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Fritz Deneken.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> ------=_NextPart_000_0018_01C0B85E.D61DFCE0--
2. Re: Backcolor graphics mode DOS32
- Posted by Irv Mullins <irvm at ellijay.com> Mar 29, 2001
- 409 views
----- Original Message ----- From: j.f.deneken at hccnet.nl To: EUforum Sent: Thursday, March 29, 2001 9:46 AM Subject: Backcolor graphics mode DOS32 <snip code> This results in a magenta number on a blue background inside a white rectangle. I would like to have the number in magenta on the white background of the rectangle, without losing the blue background of the rest of the screen. Is that possible at all ? Thanks for the help! Fritz Deneken. Not using DOS' background color. As you saw, changing the background color anywhere, changes the displayed background color for the entire screen. However, there's an easy work-around. Just draw your background as a polygon in the color you want, then draw your white area where text is to appear, and display the text. Here's an example: include graphics.e atom x x = graphics_mode(18) bk_color(BRIGHT_WHITE) position(10,10) text_color(GREEN) puts(1,"Green") position(12,10) text_color(RED) puts(1,"Red") position(14,10) text_color(MAGENTA) ? 12356 Regards, Irv
3. Re: Backcolor graphics mode DOS32
- Posted by j.f.deneken at hccnet.nl Mar 29, 2001
- 450 views
- Last edited Mar 30, 2001
----- Original Message ----- From: Irv Mullins <irvm at ellijay.com> To: EUforum <EUforum at topica.com> Sent: Friday, March 30, 2001 4:30 AM Subject: Re: Backcolor graphics mode DOS32 > > Not using DOS' background color. As you saw, changing the background > color anywhere, changes the displayed background color for the entire > screen. > However, there's an easy work-around. Just draw your background as a > polygon in the color you want, then draw your white area where text is to > appear, > and display the text. Here's an example: > > include graphics.e > atom x > x = graphics_mode(18) > polygon(BLUE,1,{{0,0},{640,0},{640,480},{0,480},{0,0}}) > polygon(BRIGHT_WHITE,1,{{50,50},{300,50},{300,300},{50,300},{50,50}}) > bk_color(BRIGHT_WHITE) > > position(10,10) > text_color(GREEN) > puts(1,"Green") > > position(12,10) > text_color(RED) > puts(1,"Red") > > position(14,10) > text_color(MAGENTA) > ? 12356 > > Regards, > Irv > > OF COURSE !! Now why didn't I think of that one? Thanks, Irv! Fritz