• Palette info...

    From charles@21:1/5 to usenet@garethlock.com on Thu Apr 23 10:58:50 2020
    In article <57e24dfa-2f16-46d0-8587-982180478006@googlegroups.com>,
    <usenet@garethlock.com> wrote:
    Can anyone either provide me with or explain how to extract the RGB
    values for the default "desktop" palette in 256 colour modes.

    Trying to deal with Sprite files on non native hardware...

    Thanks.

    Artworks will tell you.

    --
    from KT24 in Surrey, England
    "I'd rather die of exhaustion than die of boredom" Thomas Carlyle

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From usenet@garethlock.com@21:1/5 to All on Thu Apr 23 02:16:48 2020
    Can anyone either provide me with or explain how to extract the RGB values for the default "desktop" palette in 256 colour modes.

    Trying to deal with Sprite files on non native hardware...

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to usenet@garethlock.com on Thu Apr 23 11:49:08 2020
    On 23 Apr in article
    <57e24dfa-2f16-46d0-8587-982180478006@googlegroups.com>,
    <usenet@garethlock.com> wrote:
    Can anyone either provide me with or explain how to extract the RGB
    values for the default "desktop" palette in 256 colour modes.

    How about Wimp_ReadPalette?

    --
    Martin Avison
    Note that unfortunately this email address will become invalid
    without notice if (when) any spam is received.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From usenet@garethlock.com@21:1/5 to All on Thu Apr 23 03:28:42 2020
    Well... That's alright if you have the money to fork out for a copy of Artworks... I don't!!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From usenet@garethlock.com@21:1/5 to All on Thu Apr 23 06:11:28 2020
    Ok... But need entries for all 256 colours, or a program I can feed these 20 values into that will spit out RGB values for all colours displayed in !Paint colour selector.

    The target for this would be Linux or possibly Windows. So need to know how to "expand"...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve Fryatt@21:1/5 to All on Thu Apr 23 15:24:32 2020
    On 23 Apr, usenet@garethlock.com wrote in message
    <8fbaa723-3ed9-46a9-9c39-71cfb9dc05d6@googlegroups.com>:

    Ok... But need entries for all 256 colours,

    The desktop pallette is 16 colours, regardless of screen mode.

    or a program I can feed these 20 values into that will spit out RGB values for all colours displayed in !Paint colour selector.

    Ah, so you /don't/ mean the desktop pallette.

    The target for this would be Linux or possibly Windows. So need to know
    how to "expand"...

    My memory of this is a bit rusty, but isn't the colour number from 0 to 255 composed as %BBGGRRTT, giving two bits each to blue, green, red and "tint".

    Then your three colours are formed by rearranging four bits each:

    red% = %RRTT0000
    green% = %GGTT0000
    blue% = %BBTT0000

    I'm fairly sure that you'll find it documented in the PRMs -- which, unlike ArtWorks, are free online.

    --
    Steve Fryatt - Leeds, England

    http://www.stevefryatt.org.uk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From druck@21:1/5 to Steve Fryatt on Thu Apr 23 20:33:41 2020
    On 23/04/2020 15:24, Steve Fryatt wrote:
    My memory of this is a bit rusty, but isn't the colour number from 0 to 255 composed as %BBGGRRTT, giving two bits each to blue, green, red and "tint".

    Then your three colours are formed by rearranging four bits each:

    red% = %RRTT0000
    green% = %GGTT0000
    blue% = %BBTT0000

    I'm fairly sure that you'll find it documented in the PRMs

    That's correct, and it's in the PRMs.

    However that's in terms of the old Archimedes 12bit colour system. If
    you want the palette to cover the full range of 24bit RGB, i.e white is
    proper white rather than a very light grey, use:-

    red% = %RRTTTTTT
    green% = %GGTTTTTT
    blue = %BBTTTTTT

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)