Overview - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Overview of the ColorTools Package

 

Description

List of Color Format Conversion Commands

List of Color Visualization Commands

List of Commands for Color and Color Object Manipulation

List of Palette Object Commands

List of Color Collections

List of Other ColorTools Commands

Compatibility

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". For a list of built-in color names, see GetColorNames.

– 

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

– 

PlotColor -- COLOR primitive for plots: COLOR(RGB,x,y,z).  See plot/structure.

– 

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 Color Format Conversion Commands

Convert

HexToRGB24

HexToString

NameToRGB24

PlotColorToRGB24

RGB24ToHex

RGB24ToName

RGB24ToRGB

RGBToRGB24

ToRGB24

WavelengthToColor

 

List of Color Visualization Commands

HSVColorWheel

LCHColorWheel

RGBGrid

SpatterPlot

SpatterPlot3d

Swatches

 

 

List of Commands for Color and Color Object Manipulation

Adjust

AnalogousSpread

Blend

Chroma

Color

ColorDescription

CVDSimulation

Darken

Desaturate

Distance

EvenSpread

Gradient

GraySpread

Hue

HueSplit

HueSpread

Lighten

Luma

NearestNamedColor

NeutralSpread

ReducePalette

Saturate

SortPalette

ToDisplayable

ToPlotColor

ToRGB

 

 

List of Palette Object Commands

AddPalette

DisplayPalette

ExpandPalette

GetAliases

GetColors

GetPalette

GetPaletteColors

GetPaletteType

KnownColor

KnownPalette

Lookup

numcolors

numelems

Palette

PaletteNames

RemovePalette

ReverseLookup

 

 

 

List of Color Collections

BeerSRM

Bright

Cividis

Colorwheel

Coolwarm

CSS

CVD

Dalton

DivergeBJY

DivergeBKR

DivergeBKY

DivergeBWY

DivergeGWV

DivergeRainbow

Executive

Generic

HTML

HUE

Inferno

Isocircle

Isoluminant

LabWheel

Magma

MapleV

Mono

Nautical

Niagara

OldPlots

Patchwork

Plasma

Rainbow

Resene

RGBWheel

Solarized

Spring

Turbo

Twilight

Viridis

X11

xkcd

xterm

 

 

 

• 

For an overview, see Color Collections and Color Maps for Use with Plots.

List of Other ColorTools Commands

AnsiColorString

ColorsFromImage

GetColorNames

 

Compatibility

• 

The ColorTools package was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

plot/color