Raylib Wrapper Help
#2
I don't know anything much about RayLib, but I can help with the color issue:

Code: (Select All)
'R and G are backwards?
Col.r = 255 'this is blue?
Col.g = 0
Col.b = 0 'this is red? (if value is 255)
Col.a = 255

In memory, color is *always* stored in Alpha, Red, Green, Blue format.
It's easy to see with hex values: &HAARRGGBB

&HFFFF0000 is bright red... 255 alpha, 255 red
&HFF00FF00 is bright green... 255 alpha, 255 green
&HFF0000FF is bright blue... 255 alpha, 255 blue

Depending on how you're writing your data (little endian or big endian), it'll always be in either ARGB or BGRA format.

Yours appears, from your comments, to be in BGRA format here. Wink
Reply


Messages In This Thread
Raylib Wrapper Help - by LeftyG - 08-27-2022, 07:44 PM
RE: Raylib Wrapper Help - by SMcNeill - 08-27-2022, 09:33 PM
RE: Raylib Wrapper Help - by LeftyG - 08-27-2022, 09:39 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 03:44 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 07:13 PM
RE: Raylib Wrapper Help - by LeftyG - 08-29-2022, 09:29 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 02:43 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 03:05 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:00 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:25 AM
RE: Raylib Wrapper Help - by TempodiBasic - 08-30-2022, 05:07 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:37 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:49 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:07 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:12 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:45 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 04:49 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 06:38 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 06:49 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:21 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:43 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 08:55 PM



Users browsing this thread: 7 Guest(s)