multicolored font error

Previous topic - Next topic

Corax

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]

9940

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

Corax

Thanks. I know now why it ran perfectly on my computer: I had 16 bit color depth.

Hemlos

Please attach your project to a message, zdshare gives my computer problems.
Bing ChatGpt is pretty smart :O

Kitty Hello

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.

Schranz0r

Quote from: Hemlos on 2009-Jul-02
Please attach your project to a message, zdshare gives my computer problems.

Done
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard