Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
palette color help
#8
(07-13-2025, 05:53 PM)SMcNeill Wrote: Sure you can.  All the 32-bit values are available for you to use in a palette.

_PaletteColor 1, _RGBA32(128,0,0,128)    <-- this would set the palette color 1 to have 128 alpha

There's no palette in 32-bit screens however, as all 32-bit colors are available.  To use a palette, you'd need to be in 256 color mode (or less).

Yep, which is what I was talking about, that except for programs that need to display 32-bit color images, like color photographs, for the most part the games and programs I write only use a limited number of colors (usually 32 or 48) so that wouldn't be a problem for me.

(07-13-2025, 06:31 PM)a740g Wrote: _CLEARCOLOR might also be helpful for indexed images.
That's good to know!

(07-13-2025, 05:09 PM)bplus Wrote: @madscijr transparencies is the A in RGBA Smile
Right, I just wasn't sure if that was available with indexed color modes. But it is, so cool beans.
Reply


Messages In This Thread
palette color help - by pmackay - 07-13-2025, 04:17 AM
RE: palette color help - by SMcNeill - 07-13-2025, 04:26 AM
RE: palette color help - by madscijr - 07-13-2025, 04:06 PM
RE: palette color help - by SMcNeill - 07-13-2025, 05:53 PM
RE: palette color help - by madscijr - 07-13-2025, 11:51 PM
RE: palette color help - by bplus - 07-13-2025, 10:20 AM
RE: palette color help - by bplus - 07-13-2025, 05:09 PM
RE: palette color help - by a740g - 07-13-2025, 06:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  find color of a pixel PhilOfPerth 8 763 10-09-2025, 05:20 PM
Last Post: SMcNeill
  Trasparent color not being set correctly here... Dav 9 1,559 11-10-2024, 04:11 AM
Last Post: bplus
  Error displaying 256 color PCX image program? macalwen 8 1,678 07-05-2024, 01:39 PM
Last Post: SMcNeill
  Using color in Draw string PhilOfPerth 30 5,068 04-09-2024, 09:52 PM
Last Post: TerryRitchie
  Color Extraction Developer Insights TerryRitchie 11 2,001 01-28-2024, 09:05 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)