index   prev   next RISC OS Notes

Colours colors palette colour table

See named colours in PhotoDesk See DOCS - ADFS::HardDisc5.$.DOCZ.Colour See Web site for named colors and lots of colour links Program !Gamut converts PhotoDesk palettes to ArtWorks: (works but has ZeroPage issues because of Clib) ArtWorks has an option to show RGB colours as CYMK but it only applies to vector objects not JPEGs or sprites.

# ColourFiler 0.06

specifies the colour to use for the background of a Filer window. Simon Birtwhistle (Nemo, Cerelica)

# Artworks use a Colour Table which is a text file format eg:-

%%AWColourTable: %%+c p (Black) 0 0 0 1 %%+t (80% Black) 80 ........ %%+t (20% Black) 20 %%+t (10% Black) 10 %%+t (White) 0 %%+r p (sb orange) 0.75 0.4 0 %%+r p (skin1) 0.816 0.637 0.586 %%+r p (hair) 0.31 0.16 0.12 %%+r p (shadow) 0.465 0.273 0.27 %%+r p (lip1) 0.664 0.348 0.391 %%+r p (lip2) 0.5 0.289 0.289 ......... format of file: blank separated values except when in parentheses FIRST RECORD: %%AWColourTable: header record first line SUBSEQUENT RECORDS HEADER PART: parm1 %%+ id parm2 rectype values: t=Tone, c=CYMK, r=RGB RECORD TYPE t parm3 (name) name of colour in parentheses parm4 0 parm5 0 parm6 0 parm7 n key value 0.00 - 1 RECORD TYPE c parm3 p/s process/spot parm4 (name) name of colour in parentheses parm5 n cyan value 0.00 - 1 parm6 n yellow value 0.00 - 1 parm7 n magenta value 0.00 - 1 parm8 n key value 0.00 - 1 RECORD TYPE r parm3 p/s process/spot parm4 (name) name of colour in parentheses parm5 n red value 0.00 - 1 parm6 n green value 0.00 - 1 parm7 n blue value 0.00 - 1

# PhotoDesk can use named colours with same format as ArtWorks

PhotoDesk also uses palette files type FED with format eg:- 000 : 13 00 10 88 00 00 006 : 13 01 10 88 44 00 00C : 13 02 10 B9 73 5C 012 : 13 03 10 B9 73 73 018 : 13 04 10 B9 8B 73 01E : 13 05 10 B9 8B 8B 024 : 13 06 10 D0 8B 73 02A : 13 07 10 D0 A2 73 030 : 13 08 10 D0 8B 8B 036 : 13 09 10 D0 A2 8B ... ................. 5F4 : 13 FE 10 FF FF FF 5FA : 13 FF 10 FF FF FF 256 entries 6 bytes per colour: byte 1: 13 DC3 Device Control 3 mostly used for flow control byte 2: xx sequence nummber for colour (0-255) byte 3: 10 filler byte 4: xx RED component byte 5: xx GREEN component byte 6: xx BLUE component

# Make a colour palette - see PhotoDesk section

You can export palettes from Photodesk Named colours These can be dropped into an Artworks window . to find a colour definition * !mouseinfo gives RGB colour under the pointer * !Photodesk gives decimal and percent under pointer Info option in PhotoDesk (icon at left hand end) set it to show complement and it shows RGB and CMYK ONLY works inside photodesk window * open in Paint (jpeg or sprite) >> Paint > Select colour this shows the RGB etc of the pixel under the pointer * (see also Artworks section) * for anywhere on screen try this:- |Open a task window and type: |*K. 1MOUSE x%, y%, z%:PRINT ~POINT( x%, y% )|M |*BASIC |or run :- ADFS::HardDisc5.$.APPZ.C1.colore |Point at something and press the function key. | (Leave the focus in the task window!) |values are hex, in the order B, G, R |type QUIT to exit BASIC and close the window |(in 32-bit colour modes on the Iyonix-JR). |thanks to Simon Wilcocks

# Village hall back door green

RGB 25% 50% 25% # 3F7F3F CYMK 25% 0% 25% 50%

# song book colours set 1

I F00 100 00 00 II Ff9000 100 56 00 III E6E600 90 90 00 IV 0C0 00 75 00 V 0FF 00 100 100 VI 00F 00 00 100 VII 8C19FF 55 25 100 RGG base converter Hex % Dec 04 01.56 004 08 03.13 008 0C 04.69 012 10 06.25 016 20 12.50 032 30 18.75 048 40 25.00 060 50 31.75 080 60 37.50 096 70 43.75 112 80 50.00 128 90 56.25 144 A0 62.50 160 B0 68.75 176 C0 75.00 192 D0 81.25 208 E0 87.50 224 F0 93.75 248 Hex % Dec 00 0 0 22 13 34 33 20 51 66 40 102 99 60 144 BB 73 187 CC 80 204 FF 100 255 percent decimal hex 1 2.55 0 3 2 5.10 0 5 3 7.65 0 8 4 10.20 0 A 5 12.75 0 C 10 25.5 1 9 15 38.25 2 6 20 51 3 3 25 63.75 3 F 30 76.5 4 C 35 89.25 5 9 40 102 6 6 45 114.75 7 2 50 127.5 7 F 55 140.25 8 C 60 153 9 9 65 165.75 A 5 70 178.5 B 2 75 191.25 B F 80 204 C C 85 216.75 D 8 90 229.5 E 5 95 242.25 F 2 100 255 F F colour sets for background a very dull set:- % % % r g b h s v c y m k 00 00 00 0 0 0 0 0 0 100 30 30 40 240 25 40 10 10 0 60 00 40 40 180 100 40 40 0 0 60 30 40 30 120 25 40 10 0 10 60 40 40 30 60 25 40 0 0 10 60 40 30 30 0 25 40 0 10 10 60

© JR 2013