English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. General (https://eab.abime.net/forumdisplay.php?f=37)
-   -   Personal Paint's Color Palette in C (https://eab.abime.net/showthread.php?t=73747)

aszu 17 May 2014 17:23

Personal Paint's Color Palette in C
 
Hi,

I have saved a picture as C source in PPaint, but I don't know how to set the palette.

I wanted to use the SetRGB4 function, but the saved palette is in form of separate colors in format, for example, 0x0100, 0x0210, and so on. How do I convert the colors to r,g,b, required by SetRGB4 or maybe there is easier way to do it, please?

Regards

thomas 17 May 2014 18:13

The palette has the right format for use with LoadRGB32.


All times are GMT +2. The time now is 18:07.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.03916 seconds with 11 queries