Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
44 user(s) are online (31 user(s) are browsing Forums)

Members: 2
Guests: 42

broadblues, orgin, more...

Support us!

Headlines






How to print text in RGB colour?
Quite a regular
Joined:
2008/5/2 13:14
From Sweden
Posts: 504
Is there any way, anywhere, on AmigaOS 4 to draw plain text in an RGB value without resorting to 35 year old technology (planar palette)??

Something as simple as
graphics.library->SetAPenRGB(red,green,blue); //NO stupid palette number involved
graphics.library->Text(rp, "Hello world!", 12);

Or do I just have old SDK documentation?

_________________
Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
   Report Go to top

Re: How to print text in RGB colour?
Just can't stay away
Joined:
2006/11/30 11:30
From Finland
Posts: 1801
@Deniil

Just use RPTAG_APenColor tag with IGraphics->SetRPAttrs(). Format is 0xAARRGGBB.

   Report Go to top

Re: How to print text in RGB colour?
Quite a regular
Joined:
2008/5/2 13:14
From Sweden
Posts: 504
@salass00

Nice! Thank you
I wonder how I've managed to miss this one. It is in my SDK docs and seems old but I've been looking for this kind of functionality for years!

_________________
Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
   Report Go to top

Re: How to print text in RGB colour?
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1335
@Deniil

There is also another way, use CompositeTags vertex mode, palette comes from the source bitmap and font shape from alpha bitmap. This allows rotating the letters and colour gradients.

   Report Go to top

Re: How to print text in RGB colour?
Quite a regular
Joined:
2008/5/2 13:14
From Sweden
Posts: 504
@Capehill

Cool. But I don't do DTP or word processing. Just text :)

_________________
Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project