This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level.

§ 16.108 - Remap

Quick Reference to Scripting Command
a=REMAP(offset, nearness)
Items in CAPS are 0/1 or ranges with more options than just 0/1.
Ranges other than 0/1 are indicated by brackets, such as [0-2].

Operation Example

The Remap operation allows you to select a number of colors from the image, and then replace them with new colors. This can be used to subtly alter a color or color range in an image, or to give an image a completely new "look" with strange and unusual colors. The colors are set using the palette tool, and you may selectively replace up to 1024 colors. This operation also allows you to select more than just the specified colors for remapping through the use of the Nearness control. This control allows you to specify a color variance that's to be used for selecting the colors to be remapped. Increasing this values will select more and more colors in the image for remapping.

When this operator is dragged into the timeline, palettes will automatically trend to the next palette, if another exists in the timeline.

Operator Dialog

§ 16.108.1 - Remap Controls

§ - Trends

Operator dialog controls that have a Trend button next to them offer animation functionality. Trend allows you to set that variable over a set of frames. Each frame of the animation can be thought of as a slice of time. The trends allow you to alter some, all, or none of the variables for a particular time slice. Variables that have multiple states can be set to any of a number of values in the trend. Variables that are either on or off can only have an on or off value in the trend. You will notice that the trend graphs have equidistantly spaced vertical lines. Each of these lines represents a frame in the animation. The number of frames can be altered using Sequence controls... in the TimeLine pull down menu. Animation lengths of 100 - 999 frames will be represented with a vertical bar being 10 frames, and animation length greater than 1000 frames will have a vertical bar for every 100 frames. Click here to view more information on Trends.

§ - Position

The position control allows you to scroll through the "From" and "To" colors. As you move the scroll bar up and down, the colors will also move to reflect the current palette position. The current color cell number in the palette is displayed between the From and To ranges. The number of colors for the palette is set using the Palette Size control, and the colors can be set by pressing the Set button for the From and To color ranges.

§ - From and To Colors

These colors represent colors in the image that you would like to remap. The color bar on the left is called the From Colors, and the color bar on the right is called the To Colors. These colors can be set using the Set option located to the right of each color bar. When the operation is applied, F/x will locate all of the colors in the image that match (or are within the nearness setting) of the From Colors. These colors are then remapped to their corresponding To Colors. You can also increase or decrease the number of colors selected that are not exact matches by increasing or decreasing the Nearness setting.

§ - Set From Colors

This Set button is used to specify the From Colors that are to be remapped. The colors can be selected individually, loaded from a preexisting palette, or created through the various spreading and sorting tools in the palette controls. If you would like to learn more about the palette controls, Click Here.

§ - Set To Colors

This Set button is used to specify the To Colors. These colors are the colors that F/x will remap the original From Colors into. The colors can be selected individually, loaded from a preexisting palette, or created through the various spreading and sorting tools in the palette controls. If you would like to learn more about the palette controls, Click Here.

§ - Offset

This control sets a starting offset in the palette. Once a match is made during the remap process, this offset is added, and the color (offset) further into the palette is the one used. If you animate this paramter with its trend, you will be able to create the 24-bit equivalent of "palette animation". If this is set to zero, the operation works as a simple remap.

§ - Nearness

The Nearness slider allows you to specify a variance value for colors that are to be remapped. This value can range from 0 (no variance) to 255 (maximum variance). WinImages F/x will evaluate each From color in the image that is within the specified variance (nearness) amount. Colors that exactly match the From color will be replaced with the corresponding To color. Colors that do not exactly match, but that are within the specified nearness amount, will be remapped using the luminance values for the original colors, and an interpolated To color. This allows you to remap a range of colors with only a few From and To Colors.

§ - Palette Size

The Palette Size option allows you to select the total number of colors to be remapped. This value can range from 1 to 1024 separate colors. Each of these colors will need to have an associated To or From color. Any colors that are not specified will default to black, or the last specified color for that palette position.

Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
WinImages F/x, Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions
WinImages F/x Manual Version 7, Revision 6, Level A

Valid HTML 4.01 Loose

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 290