Post Reply 
Custom Text Formatting (Previously: Getting long results in a program)
04-15-2024, 05:59 AM (This post was last modified: 04-15-2024 12:33 PM by komame.)
Post: #82
RE: Getting long results in Program
(04-15-2024 05:11 AM)Tyann Wrote:  That's fine by me, especially since TEXTOUT_P accepts an extended RGB color and even a 2-element list for the color (I just tested for the text) and doesn't return an error!

Hi Tyann,

Of course, TEXTOUT_P accepts both formats. The {color,alpha} format is an alternative to RGB(R,G,B,A), and it works in all drawing instructions, because color can always be provided as a hexadecimal integer value (e.g., #RRGGBB or #AARRGGBBh, which is what the RGB function returns). Why do you think the fact that TEXTOUT_P accepts this helps in any way? Are you looking to utilize it for syntax checking using IFERR instruction?

EDIT:
It's a pity that TEXTOUT_P ignores the alpha coefficient included in the color. In all other graphic instructions, it is properly handled, and semi-transparent objects are drawn. For me, this is a bug in TEXTOUT_P.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Getting long results in Program - komame - 04-15-2024 05:59 AM
RE: Custom Text Formatting - Tyann - 04-15-2024, 06:55 PM
RE: Custom Text Formatting - komame - 04-15-2024, 07:42 PM
RE: Custom Text Formatting - Tyann - 04-16-2024, 04:38 AM
RE: Custom Text Formatting - komame - 04-16-2024, 06:02 AM



User(s) browsing this thread: 64 Guest(s)