Overview of the ColorTools Package - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools

Overview of the ColorTools Package

Description

• 

The ColorTools package contains functions for working with and converting colors, working with color palettes, and doing conversions for: color names, internationalized color strings, hex color codes, decimal RGB sequences, and float sequences.

• 

The core color type is the decimal RGB sequence, and it can be used as a central point for conversion from one type to another.

• 

The following is a list of the main color formats handled by ColorTools

– 

RGB24   - 24-bit RGB, integer values 0-255: [r,g,b]

– 

RGB     - Float RGB values 0.0-1.0: [rf,gf,bf]

– 

Hex     - Hex code in string form, e.g. either "#rrggbb" or "rrggbb"

– 

Name    - Named colors, old: 'black', 'BLACK' or new: "Black"

– 

String  - International strings - string form of Name but translated with GetMessage

– 

PlotColor - COLOR primitive for plots: COLOR(RGB,x,y,z)

– 

Color   - A data structure encoding other color spaces. It is detailed in ColorTools[Color]

  

For additional information, including a complete list of known color spaces, see ColorSpaces.

• 

Hex/Name/String convert to/from RGB24 values, so to convert from xxx to yyy usually one must convert xxx to RGB24 then RGB24 to yyy.

• 

The Color data structure generally uses floating-point RGB for intermediate calculations to avoid loss of precision from the 8 bits per channel restriction of RGB24.

List of ColorTools Package Commands

AddPalette

Adjust

AnalogousSpread

Color

ColorDescription

ColorsFromImage

Convert

Darken

Desaturate

Distance

EvenSpread

ExpandPalette

GetColorNames

GetPalette

Gradient

GraySpread

HexToRGB24

HexToString

HSVColorWheel

HueSplit

HueSpread

KnownPalette

LCHColorWheel

Lighten

NameToRGB24

NearestNamedColor

NeutralSpread

Palette

PaletteNames

PlotColorToRGB24

ReducePalette

RemovePalette

RGB24ToHex

RGB24ToName

RGB24ToRGB

RGBGrid

RGBToRGB24

Saturate

SortPalette

SpatterPlot

SpatterPlot3d

Swatches

ToDisplayable

ToRGB24

WavelengthToColor

 

 

 

See Also

plot/color


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam