GLBasic forum

Main forum => Bug Reports => Topic started by: Corax on 2009-Jul-02

Title: multicolored font error
Post by: Corax on 2009-Jul-02
I programmed a code-snippet which should display fonts in the color the user picked. It runs perfectly on my computer (black background colored strings) but not on the one I am currently using (pink background).
Could anyone test this on his machine ?

EDIT by Schranz0r:

File now on attachments

[attachment deleted by admin]
Title: Re: multicolored font error
Post by: 9940 on 2009-Jul-02
Code (glbasic) Select
SETTRANSPARENCY RGB(255,255,255)
LOADFONT "Font_Color.png", 0
SETTRANSPARENCY RGB(255,0,128)


The pink of the image is not  rgb (255,0,128).

Try this
(http://img30.imageshack.us/img30/1896/fontcolor.png)
Title: Re: multicolored font error
Post by: Corax on 2009-Jul-02
Thanks. I know now why it ran perfectly on my computer: I had 16 bit color depth.
Title: Re: multicolored font error
Post by: Hemlos on 2009-Jul-02
Please attach your project to a message, zdshare gives my computer problems.
Title: Re: multicolored font error
Post by: Kitty Hello on 2009-Jul-02
if you want to re-color a sprite, do this:

loadsprite 1,...
getspritesize 1,sx,sy
createscreen 0,0,sx,sy
usescreen 0
drawrect 0,0,sx,sy,rgb(255,0,128)
// use polyvector to draw the sprite, but use the colours the user chose
startpoly....
usescreen -1
savesprite 0, outname$

... sort of.
Title: Re: multicolored font error
Post by: Schranz0r on 2009-Jul-02
Quote from: Hemlos on 2009-Jul-02
Please attach your project to a message, zdshare gives my computer problems.

Done