PalMaker PalMaker  256 colour palette editor for RiscOS
Help for
PalMaker

-
 Disclaimer
 Background
 Use
 Tools
 · Selection tools
 · Whole palette tools
 · Dragging
 · Channels
 · 16-colour import
 · Saving
 History
 Signing off


Designed using
!HTML³

    About this program...
    Purpose: Create 256 colour palettes
    Author: Richard Goodwin
    Status: Freeware

    This program is © Rich Goodwin 1999; it may be freely distributed if:

    • All files remain intact and unaltered
    • No unreasonable charge is made
    Version: 1.01 (January 2000)
    Features: Drag and drop merge, copy or swap; blending, flips, shifts; import 16 colour palattes in four styles; individual RGB channel control; Risc OS picker for RGB, HSV and CMYK colour picking
    Web: http://www.goodwin.uk.com/richard/programs/


    Disclaimer

    • If it doesn't work, tough.
    • If it trashes anything, well, that's a good lesson in taking backups.
    ^ Back to top


    Background

    Once upon a time I found a nice 256 colour palette editor buried deep in a directory on a disc containing something that I would never have associated with any kind of graphics editing. I had great fun editing 256 greyscale digitised images, creating all kinds of moods with heavy colour saturation, or playing with false-colouring scenes with complicated palette blends.

    Then my computer was stolen.

    I went through every disc I could think of, but could never find that palette editor again. Eventually I got Photodesk, which can do simple palette editing with blends, but it just wasn't enough - the display wasn't right, there weren't enough controls and so on. So, I decided to write my own.

    ^ Back to top


    Use

    I hope your mouse buttons are in good working order...

    Mouse operations on the colour window
    Mouse operationIn plain EnglishAction
    Select: left mouse, single clicknothing (but see Adjust)
    Menu: middle mouse buttonbring up standard menu - basically allows you to do a quick palette save
    Adjust: right mouse buttonstart a selection; click Select to end
    Double-click: left mouse button click twice quicklyedit colour (using colour picker)
    Drag: left mouse button held down and pointer moved aroundone of three operations depending on options in Tools window (copy current colour to destination, or swap the two colours, or merge the first into the second)

    All that will become clear if you read on... (I hope!)

      Mouse operations on the iconbar icon  
    Mouse operationAction
    Select: open colour window
    Menu: bring up menu
    Adjust: open tools window

    ^ Back to top


    Tools

    There are essentially two different types of tools in the tools window - those which can be used at any time and affect the whole palette of 256 colours, and those which require an area to be selected. The "Selection" tools come first.

    ^ Back to top

    Selection tools

    To create a select area, click on a colour at the start (or end) of the area you want to change with the RIGHT mouse button (Adjust); then go to the other end and click Select (the LEFT mouse button). You should see that the area selected has been "slabbed in". You can of course select the whole palette by selecting the first and last colours, or there's a "Select all" button. The smallest area you can select is one colour. To deselect the area, just click on the colour area; any operation such as selecting a new area, or dragging colours around, will also cancel the currently select area. There's also a "Clear selection" button.
    • Blend
      this is probably the most useful tool - you create one colour, create a second a little way away, and use this tool to smoothly interpolate between the two. For instance, creating black at the start of the colours, then white at the end, and blending between the two gives a full 256 greyscale palette. For coloured palettes, try creating black at the start, white at the end, and then a colour half-way down - for example, red. Blend between black and the colour, and then white and the colour - you've got a red-tinted palette. Try dropping it onto a 256 greyscale image and see the difference. You can extend this by creating a second and maybe even a third colour, and blending black-colour1-colour2-colour3-white and creating some complex, moody palettes to enhance greyscale images.
    • Invert
      This makes the currently selected colours turn into negative versions of themselves - for instance, black becomes white, red becomes cyan, blue becomes orange, green becomes purple and so on. You can of course apply the inversion a second time and the colours return to their original values. See also Reverse.
    • Reverse
      This simply flips the colours around - so a fade from blue to red becomes a fade from red to blue. It might be handy if you've just inverted the colours as well, as an inversion also makes dark colours light and light colours dark.
    • Lighten
      This adds a little brightness to each colour in the blend; it does tend to wash the colours out a little, so simply applying "darken" will not restore the colours to their original values. It's useful to either just lighten a picture up a little, or used heavily to create an "over-exposed" effect (perhaps used sequencially this can be used to create a simple fade-out animation?). See also Darken.
    • Darken
      Essentially the same as Lighten, but making the selected colours darker. Also useful for creating dark, moody pictures.

    ^ Back to top

    Whole palette tools

    These tools affect the whole palette, no matter what area is selected; as such they should be used with care!
    • Mirror
      and
    • Flip
      These two options basically do the same thing - flip the palette over so the colours at one side move to the other side. Mirror does this from left to right, and Flip does it from top to bottom. Flipping the palette is not the same as reversing it; consider a greyscale palette, with black in colour 0 and white in colour 255; a proper inversion/reverse of this will put black in 255 and white in 0. A flip, on the other hand, has black in 240 and white in 15.

    • Clockwise
      and
    • Anticlockwise
      These two tools rotate the palette around by 90 degrees - either in a clockwise direction or anti-clockwise (I hate the Americanism counter- clockwise ;). Two rotations in one direction is the same as a reversal.

    • Move left
      and
    • Move right
      This moves the palette left or right by one space; this is useful for lightening or darkening a palette without washing the colours out, simply by bumping them up the order a little. Because the operation is done with wrap-around - that is, if the colour is pushed off one end of the palette (e.g. left of 0) it appears at the other end (e.g. now becomes 255) - you might have to edit the top or bottom lines of colour to create a properly flowing image. Or use it over and over for a colour cycling effect! See also the Shift operations.

    • Shift up
    • Shift down
    • Shift left
      and
    • Shift right
      This moves the palette by a whole column or row; shifting up or down is like using the Move functions 16 times; I don't know why you'd want to shift left or right, but included them for completeness ;)

    ^ Back to top

    Dragging

    You can drag a colour in the palette from one position to a new one; by default this will Copy the contents of the first colour into the second one, which is useful if you haven't quite got the colour in the right place. For instance, if you create a black to red to white palette and it looks a little dark, you might want to move the red up a couple of rows and re-blend it.

    Swap exchanges the first and second colours, useful if you want to change one colour but preserve the colours in the destination slot. For instance, if you're creating a sequence of 16 colour strips of colour for a game, you might want to simply have the reds before the blues, but you still need the blues so you swap them over.

    Merge allows you to build new colours - for instance, if you have a colour and drag black into it, the colour becomes darker; drag some red into it and it becomes a little more red and so on. It means you can create colours from existing colours in a slightly different way to the colour picker - you can generally only add red, green and blue or cyan, magenta, yellow and black from the colour picker, whereas this allows you to add a tint of any other colour.

    ^ Back to top

    Channels

    By switching on and off the channels you can apply any and all of the above tools to just the red, green or blue (or in combination to yellow, magenta or cyan) parts of the colour; so, for instance, if a palette looks a little too glaring red, you can darken the red channel and it looks a little more brown, or lighten the green channel to make it more orange (as red and green go to make yellow in the RGB colour model). This takes a little geting used to, and can lead to some weird effects!

    ^ Back to top

    16-colour palette import

    PalMaker uses 256 colour palettes; however, Risc OS also allows 16 colour palettes to be used, which can be useful for simpler images, and I already had a number of these due to the 16 colour palette editor I wrote into !HTML3. To quickly use these in PalMaker I wrote a 16 colour palette importer function which has the ability to blend the colours to fill the whole 256 colour places PalMaker uses.

    Full blend is the best blending to convert a 16 colour palette to 256 colours - it takes every colour in the 16 colour palette and assigns them to every seventeenth colour in the 256 colour palette, blending between them as it goes. So, if you have a 16 colour palette theat goes from black to blue to white, you'll have the same effect in 256 colours.

    Left hand wrap drops the 16 colours into the 16 colours on the left of the 256 colour palette, and then blends to the colour in the next left hand slot; this is a more accurate blend than "Full", but if you have a traditional dark to light 16 colour palette the last line will probaly be white fading quickly to black, which looks odd. However, this wrap-around may be desirable for other effects, such as colour cycling. Row and Column basically just drop the 16 colour palette into the 16 colours of the row or column you drop it on to; for instance, drop a raindow palette with Column import switched on, make the whole of the left column black, the whole of the right hand colour white, blend along the lines, and you have a pretty good games palette for easy lightshading.

    ^ Back to top

    Saving

    The save box is, despite it being tacked onto the end of the tools window, a conventional save box - you can type in full path names and click "OK", or drag the palette icon to the filer window of your choice. At the moment RAM transfer isn't supported, as !Paint seems to be broken in this respect. I thought it might be my dodgy programming, but it gives the same incorrect error messages when I try to do saves from other programs that I haven't written (like Photodesk 3), so either Paint is broken or everything else is.

    ^ Back to top


    History

    Release history
    1.00  First release  The first program I've written which uses redraw code and drag and drop editing, and only the second to have a proper save routine.
    1.01  Minor update  It tells you which colour you're editing in the colour picker title bar; web pages launch even if browser isn't currently loaded.

    ^ Back to top


    Signing off

    If you like this, let me know by emailing richard@goodwin.uk.com You might also be interested in !HTML3 - a HTML helper, which just happens to have a 16 colour palette editor built in. It can be found at http://www.goodwin.uk.com/richard/programs/html3/

    Rich Goodwin
    richard@goodwin.uk.com
    Saturday, 6th February 1999

    ^ Back to top