StandardGradients

public static class StandardGradients
Provides a collection of default gradients, as well as access to custom user gradients.

Properties

ActiValue

#
Five colour palette designed by Bas Vredeling.
[Nomen("ActiValue|G", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient ActiValue { get; }

Autumn

#
Gets a preset gradient containing a collection of autumn colours.
[Nomen("Autumn|B", "A collection of autumn colours.", "Standard", "Natural", 2)] public static Gradient Autumn { get; }

Balance

#
Normalised balance gradient designed by Kristen Thyng.
[Nomen("Balance|F", "Normalised balance gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Balance { get; }

Bathymetry

#
Bathometry scale parameterised at metres depth.
[Nomen("Bathymetry|A", "Bathometry scale parameterised at metres depth.", "Standard", "Topography", 1)] public static Gradient Bathymetry { get; }

BipolarLlama

#
Purple and veridian on opposites sides of grey.
[Nomen("Bipolar Llama|B", "Purple and veridian on opposites sides of grey.", "Standard", "Somber", 3)] public static Gradient BipolarLlama { get; }

Blackbody

#
The entire visible spectrum, parameterised at nanometre wavelengths.
[Nomen("Blackbody|D", "Visible component of black-body radiation, parameterised at the Kelvin scale.", "Standard", "Analytic", 2)] public static Gradient Blackbody { get; }

Blue

#
Gets a preset gradient from black to white via blue.
[Nomen("Blue|C", "Black to white via blue.", "Standard", "Monotone", 1)] public static Gradient Blue { get; }

BlueSienna

#
Gets a preset gradient from blue to red with a discontinuity in the middle from cyan to yellow.
[Nomen("BlueSienna|A", "Blue to sienna with a discontinuity in the middle from cyan to yellow.", "Standard", "Analytic", 2)] public static Gradient BlueSienna { get; }

Candy

#
Percentage based progression from pale yellow to deep purple with a bias towards the end of the scale.
[Nomen("Candy|A", "Percentage based progression from pale yellow to dark purple with a bias towards the end of the scale.", "Standard", "Diagram", 2)] public static Gradient Candy { get; }

ChocolateMoose

#
Five colour palette designed by Bas Vredeling.
[Nomen("Chocolate Moose|C", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient ChocolateMoose { get; }

ColourVision

#
A set of colours visible to people with regular colour vision.
[Nomen("Colour Vision|A", "A set of colours visible to people with regular colour vision.", "Standard", "Scientific", 3)] public static Gradient ColourVision { get; }

Conceptuality

#
Five colour palette designed by Bas Vredeling.
[Nomen("Conceptuality|H", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient Conceptuality { get; }

Curl

#
Normalised curl gradient designed by Kristen Thyng.
[Nomen("Curl|E", "Normalised curl gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Curl { get; }

CustomNames

#
Enumerates over all custom gradient names.
public static IEnumerable<string> CustomNames { get; }

DarkAndNeutral

#
A progression from dark green to medium grey.
[Nomen("Dark and Neutral|A", "A progression from dark green to medium grey.", "Standard", "Somber", 1)] public static Gradient DarkAndNeutral { get; }

DarkButWarm

#
A progression from dark red to Spanish orange.
[Nomen("Dark but Warm|B", "A progression from dark red to Spanish orange.", "Standard", "Somber", 1)] public static Gradient DarkButWarm { get; }

DarkYetCold

#
A progression from Delft blue to Cadet blue.
[Nomen("Dark yet Cold|C", "A progression from Delft blue to Cadet blue.", "Standard", "Somber", 1)] public static Gradient DarkYetCold { get; }

Deep

#
Normalised depth gradient designed by Kristen Thyng.
[Nomen("Deep|F", "Normalised depth gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Deep { get; }

Delta

#
Normalised delta gradient designed by Kristen Thyng.
[Nomen("Delta|G", "Normalised delta gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Delta { get; }

DemPoster

#
DEM colour scale for positive elevations in metres.
[Nomen("DEM Poster|D", "DEM colour scale for positive elevations in metres.", "Standard", "Topography", 1)] public static Gradient DemPoster { get; }

Dense

#
Normalised density gradient designed by Kristen Thyng.
[Nomen("Dense|G", "Normalised density gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Dense { get; }

Deuteranomialia

#
Modification of 'Colour Vision' gradient adjusted for deuteranomalia colour blindness.
[Nomen("Deuteranomialia|B", "Modification of 'Colour Vision' gradient adjusted for deuteranomalia colour blindness.", "Standard", "Scientific", 3)] public static Gradient Deuteranomialia { get; }

Divergent

#
Continuous diverent scheme by J. Green.
[Nomen("Divergent|D", "Continuous diverent scheme by J. Green.", "Standard", "Analytic", 1)] public static Gradient Divergent { get; }

Earth

#
Gets a preset gradient containing a collection of Terran colours.
[Nomen("Earth|A", "A collection of Terran colours.", "Standard", "Natural", 3)] public static Gradient Earth { get; }

Fire

#
Flame like colours.
[Nomen("Fire|C", "Flame like colours.", "Standard", "Analytic", 1)] public static Gradient Fire { get; }

Forest

#
Gets a preset gradient containing forest like colours.
[Nomen("Forest|B", "A collection of forest greens.", "Standard", "Natural", 1)] public static Gradient Forest { get; }

GaneshasBlessing

#
Five colour palette designed by Bas Vredeling.
[Nomen("Ganesha's Blessing|B", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient GaneshasBlessing { get; }

Garish

#
Garish scheme by J. Green.
[Nomen("Garish|E", "Garish scheme by J. Green.", "Standard", "Analytic", 1)] public static Gradient Garish { get; }

GeologicalEpochs

#
The geological epochs according to the GTS 2012 standard, parameterised at MYA.
[Nomen("Geological Epochs|C", "The geological epochs according to the GTS 2012 standard, parameterised at MYA.", "Standard", "Scientific", 4)] public static Gradient GeologicalEpochs { get; }

GeologicalEras

#
The geological eras according to the GTS 2012 standard, parameterised at MYA.
[Nomen("Geological Eras|A", "The geological eras according to the GTS 2012 standard, parameterised at MYA.", "Standard", "Scientific", 4)] public static Gradient GeologicalEras { get; }

GeologicalPeriods

#
The geological periods according to the GTS 2012 standard, parameterised at MYA.
[Nomen("Geological Periods|B", "The geological periods according to the GTS 2012 standard, parameterised at MYA.", "Standard", "Scientific", 4)] public static Gradient GeologicalPeriods { get; }

GlobalRelief

#
NGDC elevation gradient for relief maps, parameterised to metres.
[Nomen("Global Relief|C", "NGDC elevation gradient for relief maps, parameterised to metres.", "Standard", "Topography", 1)] public static Gradient GlobalRelief { get; }

GloomyDisco

#
A progression from royal purple to celestial blue.
[Nomen("Gloomy Disco|A", "A progression from royal purple to celestial blue.", "Standard", "Somber", 2)] public static Gradient GloomyDisco { get; }

Gold

#
Gets a preset gradient from black to white via gold.
[Nomen("Gold|D", "Black to white via gold.", "Standard", "Monotone", 2)] public static Gradient Gold { get; }

GoodNewsBadNews

#
Five colour palette designed by Bas Vredeling.
[Nomen("Good News Bad News|F", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient GoodNewsBadNews { get; }

Green

#
Gets a preset gradient from black to white via green.
[Nomen("Green|B", "Black to white via green.", "Standard", "Monotone", 1)] public static Gradient Green { get; }

Grey

#
Gets a preset gradient from white to black.
[Nomen("Grey|D", "Black to white.", "Standard", "Monotone", 1)] public static Gradient Grey { get; }

Haline

#
Normalised haline gradient designed by Kristen Thyng.
[Nomen("Haline|B", "Normalised haline gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Haline { get; }

HappyHappy

#
Pleasing spectral progression from red to cream to green to blue.
[Nomen("Happy Happy|A", "Pleasing spectral progression from red to cream to green to blue.", "Standard", "Diagram", 2)] public static Gradient HappyHappy { get; }

Heat

#
Gets a preset gradient containing temperature associated colours.
[Nomen("Heat|B", "Temperature associated colours from cool blue to hot red.", "Standard", "Analytic", 1)] public static Gradient Heat { get; }

HeatDeath

#
A dark spectral cycle.
[Nomen("Heat Death|C", "A dark spectral cycle.", "Standard", "Somber", 2)] public static Gradient HeatDeath { get; }

HortusBotanicus

#
Five colour palette designed by Bas Vredeling.
[Nomen("Hortus Botanicus|A", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient HortusBotanicus { get; }

Hue

#
Gets a preset gradient across the hue spectrum.
[Nomen("Hue|B", "The hue wheel, starting and ending at red.", "Standard", "Analytic", 2)] public static Gradient Hue { get; }

Ice

#
Normalised ice gradient designed by Kristen Thyng.
[Nomen("Ice|B", "Normalised ice gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Ice { get; }

IcecreamFromItaly

#
Five colour palette designed by Bas Vredeling.
[Nomen("Icecream from Italy|D", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient IcecreamFromItaly { get; }

Icelandic

#
Icelandic topographic palette for positive elevations in metres.
[Nomen("Icelandic|E", "Icelandic topographic palette for positive elevations in metres.", "Standard", "Topography", 1)] public static Gradient Icelandic { get; }

Jupiter

#
Gets a preset gradient containing a collection of Jovian colours.
[Nomen("Jupiter|C", "A collection of Jovian colours.", "Standard", "Natural", 3)] public static Gradient Jupiter { get; }

Logarithmic

#
Base-10 logarithmic scale from 1e-5 to 1e+5 based on the Open Color Standard.
[Nomen("Logarithmic|F", "Base-10 logarithmic scale from 1e-5 to 1e+5 based on the Open Color Standard.", "Standard", "Diagram", 1)] public static Gradient Logarithmic { get; }

Matter

#
Normalised matter gradient designed by Kristen Thyng.
[Nomen("Matter|E", "Normalised matter gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Matter { get; }

MellowGold

#
Five colour palette designed by Bas Vredeling.
[Nomen("Mellow Gold|J", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient MellowGold { get; }

Mixed12

#
Twelve discontinuous mixed colours by 'Interactive Things'.
[Nomen("Mixed 12|D", "Twelve discontinuous mixed colours by 'Interactive Things'.", "Standard", "Diagram", 1)] public static Gradient Mixed12 { get; }

Mulberry

#
A progression from carmine to egyptian blue.
[Nomen("Mulberry|B", "A progression from carmine to egyptian blue.", "Standard", "Somber", 2)] public static Gradient Mulberry { get; }

Neptune

#
Gets a preset gradient containing a collection of Neptunian colours.
[Nomen("Neptune|D", "A collection of Neptunian colours.", "Standard", "Natural", 3)] public static Gradient Neptune { get; }

NerdFlirt

#
Five colour palette designed by Bas Vredeling.
[Nomen("Nerd Flirt|E", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient NerdFlirt { get; }

Nordisk

#
Norwegian false colour elevation gradient parameterised to metres.
[Nomen("Nordisk|B", "Norwegian scale parameterised to metres.", "Standard", "Topography", 1)] public static Gradient Nordisk { get; }

Orange

#
Gets a preset gradient from black to white via orange.
[Nomen("Orange|C", "Black to white via orange.", "Standard", "Monotone", 2)] public static Gradient Orange { get; }

Oxy

#
Normalised oxy gradient designed by Kristen Thyng.
[Nomen("Oxy|D", "Normalised oxy gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Oxy { get; }

Paired10

#
Ten discontinuous paired colours by Cynthia Brewer.
[Nomen("Paired 10|B", "Ten discontinuous paired colours by Cynthia Brewer.", "Standard", "Diagram", 1)] public static Gradient Paired10 { get; }

Pakistani

#
Pakistani topographic palette for positive elevations in metres.
[Nomen("Pakistani|F", "Pakistani topographic palette for positive elevations in metres.", "Standard", "Topography", 1)] public static Gradient Pakistani { get; }

Phase

#
Normalised phase gradient designed by Kristen Thyng.
[Nomen("Phase|C", "Normalised phase gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Phase { get; }

Pink

#
Gets a preset gradient from black to white via pink.
[Nomen("Pink|B", "Black to white via pink.", "Standard", "Monotone", 2)] public static Gradient Pink { get; }

Protanopia

#
Modification of 'Colour Vision' gradient adjusted for protanopia colour blindness.
[Nomen("Protanopia|C", "Modification of 'Colour Vision' gradient adjusted for protanopia colour blindness.", "Standard", "Scientific", 3)] public static Gradient Protanopia { get; }

Purple

#
Gets a preset gradient from black to white via purple.
[Nomen("Purple|A", "Black to white via purple.", "Standard", "Monotone", 2)] public static Gradient Purple { get; }

Rainbow18

#
Eighteen discontinuous colour bands from 'KST visualizer'.
[Nomen("Rainbow 18|E", "Eighteen discontinuous colour bands from 'KST visualizer'.", "Standard", "Diagram", 1)] public static Gradient Rainbow18 { get; }

Red

#
Gets a preset gradient from black to white via red.
[Nomen("Red|A", "Black to white via red.", "Standard", "Monotone", 1)] public static Gradient Red { get; }

Remembrance

#
Five colour palette designed by Bas Vredeling.
[Nomen("Remembrance|I", "Palette of five colours designed by Bas Vredeling.", "Standard", "Diagram", 3)] public static Gradient Remembrance { get; }

RoyalBlue

#
Gets a preset gradient from black to white via royal blue.
[Nomen("RoyalBlue|E", "Black to white via royal blue.", "Standard", "Monotone", 2)] public static Gradient RoyalBlue { get; }

SadAlpaca

#
A dark progression from greyish brown, through depressing orange, to bland olive.
[Nomen("Sad Alpaca|A", "A dark progression from greyish brown, through depressing orange, to bland olive.", "Standard", "Somber", 3)] public static Gradient SadAlpaca { get; }

Soil

#
Gets a preset gradient containing earthly browns.
[Nomen("Soil|A", "A collection of earthly browns.", "Standard", "Natural", 1)] public static Gradient Soil { get; }

Solar

#
Normalised solar gradient designed by Kristen Thyng.
[Nomen("Solar|A", "Normalised solar gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Solar { get; }

SousVideSteak

#
Steak done-ness parameterised at degrees Celsius.
[Nomen("Sous-vide Steak|B", "Steak done-ness parameterised at degrees Celsius.", "Standard", "Diagram", 2)] public static Gradient SousVideSteak { get; }

Spectral6

#
Six discontinuous spectral colours by 'Interactive Things'.
[Nomen("Spectral 6|B", "Six discontinuous spectral colours by 'Interactive Things'.", "Standard", "Diagram", 1)] public static Gradient Spectral6 { get; }

Spectrum

#
The entire visible spectrum, parameterised at nanometre wavelengths.
[Nomen("Spectrum|C", "The entire visible spectrum, parameterised at nanometre wavelengths.", "Standard", "Analytic", 2)] public static Gradient Spectrum { get; }

Speed

#
Normalised speed gradient designed by Kristen Thyng.
[Nomen("Speed|C", "Normalised speed gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Speed { get; }

Spring

#
Gets a preset gradient containing a collection of spring colours.
[Nomen("Spring|D", "A collection of spring colours.", "Standard", "Natural", 2)] public static Gradient Spring { get; }

StandardNames

#
Enumerate over all hard-coded preset names.
public static IEnumerable<Nomen> StandardNames { get; }

Summer

#
Gets a preset gradient containing a collection of summer colours.
[Nomen("Summer|A", "A collection of summer colours.", "Standard", "Natural", 2)] public static Gradient Summer { get; }

Sunrise

#
A collection of sunrise and water colours.
[Nomen("Sunrise|D", "A collection of sunrise and water colours.", "Standard", "Natural", 1)] public static Gradient Sunrise { get; }

Teal

#
Gets a preset gradient from black to white via a teal/cyan blend.
[Nomen("Teal|F", "Black to white via teal.", "Standard", "Monotone", 2)] public static Gradient Teal { get; }

Tempo

#
Normalised tempo gradient designed by Kristen Thyng.
[Nomen("Tempo|D", "Normalised tempo gradient designed by Kristen Thyng.", "Standard", "Scientific", 2)] public static Gradient Tempo { get; }

Thermal

#
Normalised thermal gradient designed by Kristen Thyng.
[Nomen("Thermal|A", "Normalised thermal gradient designed by Kristen Thyng.", "Standard", "Scientific", 1)] public static Gradient Thermal { get; }

Traffic

#
Gets a preset gradient from green, via yellow to red.
[Nomen("Traffic|A", "Green to red, via yellow.", "Standard", "Analytic", 1)] public static Gradient Traffic { get; }

Tritanopia

#
Modification of 'Colour Vision' gradient adjusted for tritanopia colour blindness.
[Nomen("Tritanopia|D", "Modification of 'Colour Vision' gradient adjusted for tritanopia colour blindness.", "Standard", "Scientific", 3)] public static Gradient Tritanopia { get; }

Turbo

#
A smooth progression from dark blue to green to red by Anton Mikhailov.
[Nomen("Turbo|F", "A smooth progression from dark blue to green to red based on a design by A. Mikhailov.", "Standard", "Analytic", 1)] public static Gradient Turbo { get; }

Venus

#
Gets a preset gradient containing a collection of Venerian colours.
[Nomen("Venus|B", "A collection of Venerian colours.", "Standard", "Natural", 3)] public static Gradient Venus { get; }

Water

#
Gets a preset gradient containing colours associated with water.
[Nomen("Water|C", "A collection of watery blues.", "Standard", "Natural", 1)] public static Gradient Water { get; }

Winter

#
Gets a preset gradient containing a collection of winter colours.
[Nomen("Winter|C", "A collection of winter colours.", "Standard", "Natural", 2)] public static Gradient Winter { get; }

YellowGreen

#
Gets a preset gradient from black to white via yellow green.
[Nomen("YellowGreen|E", "Black to white via yellowish green.", "Standard", "Monotone", 2)] public static Gradient YellowGreen { get; }

Zebra

#
Ten alternating black and white bands.
[Nomen("Zebra|A", "Ten sharp transitions from white to black.", "Standard", "Diagram", 1)] public static Gradient Zebra { get; }

Methods

AddCustomGradient

#
Adds a new custom gradient.
public static void AddCustomGradient(
name,
Name of custom gradient. If the name is already defined, an exception will be thrown.
gradient
Gradient to add.
)
True if gradient was stored.

DeleteCustomGradient

#
Delete a custom gradient.
public static bool DeleteCustomGradient(
name
Name of custom gradient.
)
True if a gradient by that name was deleted.

GetCustomGradient

#
Gets a custom gradient by name.
public static Gradient GetCustomGradient(
name
Name of custom gradient.
)
Custom gradient associated with the given name, or null.

GetStandardGradient

#
Find the standard gradient with the given name.
public static Gradient GetStandardGradient(
nomen
)

GetStandardGradient

#
Find the standard gradient with the given name.
public static Gradient GetStandardGradient(
name
)

IsPresetExact

#
Test to see if a gradient matches one of the presets.
public static bool IsPresetExact(
gradient,
Gradient to check.
out string
name
Name of preset.
)
True if the gradient was identical to a named preset.

IsPresetFuzzy

#
Test to see if a gradient matches one of the presets, allowing for remapped domains.
public static bool IsPresetFuzzy(
gradient,
Gradient to check.
out string
name,
Name of preset.
out double
lower,
Remapped lower end of domain, or NaN if not remapped.
out double
upper
Remapped upper end of domain, or NaN if not remapped.
)
True if the gradient was identical to a named preset.

PopulateContextMenu

#
Populates a menu with gradient presets. The Command.Parameter of each inserted menu item contains the Description for the relevant gradient.
public static void PopulateContextMenu(
ContextMenu
menu,
Menu to populate.
menuClickHandler
Handler for gradient menu items.
)

TryParseStandardGradient

#
Try and create one of the standard or custom gradients from a description. A suffix in the form " from a to b" will be taken to mean a domain remapping. 'A' and 'b' may be numbers, dates or times.
public static bool TryParseStandardGradient(
text,
Text to parse.
gradient
Gradient if successful.
)
True on success, false on failure.