Re: bk_color()in pixel graphics mode
- Posted by Jiri Babor <J.Babor at GNS.CRI.NZ> Mar 30, 2000
- 527 views
>Hello Gwena=EBl, > Look on the Archive or on the recent contributions page at RDS's= > site. Or to get a lot of libraries to display fonts, just go to > the recent contributions page and in the search sle put Font, > I'm sure you're going to get a lot of different libraries. > >-- >Best regards, ICQ Number: 3198249 > Caballero Rojo mailto:pampeano at rocketmail.co= m > >Wednesday, March 29, 2000, 5:32:43 PM, you wrote: > >GJ> Hello Everyone ! > >GJ> Just a little question : I'm coding a little game in graphics_mode= 256 >and I >GJ> need to display a lot of characters very quickly, but each with a= >GJ> background color. I tried Putsxy, a great library, but it's too sl= ow. I >GJ> tried also to do that with puts() but bk_color() in pixel graphic = mode >GJ> affect the whole screen ! So I don't how to put a char with a >GJ> background color on the screen in pixel graphic mode without using= >putsxy. >GJ> Can you help me please ??? > >GJ> Ciao ! > >GJ> Gwen Unfortunately, guys, putsxy is as fast as they get. If you need to change just the *foreground* color, you could use rfont, that allows you to change it 'on-the-fly'. In other words, it makes it possible to write a whole lot of differently colored characters in one go, which is much faster than printing individual characters. But I am sorry, it did not seem important enough to me to provide 'on-the-fly' change of the background as well... Btw, 256 color modes, apart from mode 19, are often VERY SLOW anywhere away from the first few lines. So if you can live with just 16 colors, mode 18 would be much better choice. jiri =