This is a discussion on A little palette program - Scion ; Hello everyone, Since it's a quiet day on comp.sys.psion.misc I thought I'd post a little program that I wrote this morning, to show me the palette in each of the graphics modes on my EPOC32 machines. The program will show ...
Since it's a quiet day on comp.sys.psion.misc I thought I'd post a
little program that I wrote this morning, to show me the palette in each
of the graphics modes on my EPOC32 machines. The program will show
palettes up to 4096 colours, on everything from the Osaris to the
Netbook, and possibly some machines running Symbian 6 and beyond.
You can use the screen grab feature on your handheld to save the
resulting screen shot in a file. I used this to create specific
palettes in my desktop graphics package, so I could use the desktop
machine to dither images down to the 16- and 256-colour EPOC palettes.
Here's the program, to cut and paste into the OPL editor; feel free to
do with it what you will:
REM Palette.opl - display the full palette
REM Copyright (C) Damian Walker 2008
REM - Main Program
gIPRINT "Press a key"
REM -- Ask use for the mode
dINIT "Graphics mode"
REM -- Show the palette
x%=(red%+$10*(blue% AND $C)/$4)*blockx%
y%=(green%+$10*(blue% AND $3))*blocky%
Damian - http://psion.snigfarp.karoo.net/
For email replies, substitute "psion" for "damian" in my email address.