get color

From DavinciWiki
Jump to: navigation, search

Description

Gets the rgb color values from a variety of color names. The colors included are many (if not all) of the standard web colors.

Arguments and Return Values

Input: A string of the color name

Output: A 1x1x3 numeric array with the corresponding red, green and blue values

Usage

Syntax: thm.contour(color_name [, display = VAL])

  color_name - a string with the specified color name
  display    - display a small color square (Default = "no")

Examples

dv> a = get_color("SpringGreen")
1x1x3 array of int, bsq format [12 bytes]
0 

255

127

Images

get color 20.png

AliceBlue AntiqueWhite Aqua Aquamarine Azure Beige Bisque Black BlanchedAlmond Blue BlueViolet Brown Burlywood CadetBlue Chartreuse Chocolate Coral CornflowerBlue Cornsilk Cyan


get color 40.png

DarkBlue DarkCyan DarkGoldenrod DarkGray DarkGreen DarkKhaki DarkMagenta DarkOliveGreen DarkOrange DarkOrchid DarkRed DarkSalmon DarkSeaGreen DarkSlateBlue DarkSlateGray DarkTurquoise DarkViolet DeepPink DeepSkyBlue DimGray


get color 60.png

DodgerBlue Firebrick FloralWhite ForestGreen Fuschia Gainsboro GhostWhite Gold Goldenrod Gray Green GreenYellow Honeydew HotPink Ivory Khaki Lavender LavenderBlush LawnGreen LemonChiffon


get color 80.png

LightBlue LightCoral LightCyan LightGoldenrod LightGoldenrodYellow LightGray LightGreen LightPink LightSalmon LightSeaGreen LightSkyBlue LightSlateBlue LightSlateGray LightSteelBlue LightYellow Lime LimeGreen Linen Magenta Maroon


get color 100.png

MediumAquamarine MediumBlue MediumOrchid MediumPurple MediumSeaGreen MediumSlateBlue MediumSpringGreen MediumTurquoise MediumVioletRed MidnightBlue MintCream MistyRose Moccasin NavajoWhite Navy OldLace Olive OliveDrab Orange OrangeRed


get color 120.png

Orchid PaleGoldenrod PaleGreen PaleTurquoise PaleVioletRed PapayaWhip PeachPuff Peru Pink Plum PowderBlue Purple Red RosyBrown RoyalBlue SaddleBrown Salmon SandyBrown SeaGreen Seashell


get color 140.png

Sienna Silver SkyBlue SlateBlue SlateGray Snow SpringGreen SteelBlue Tan Teal Thistle Tomato Turquoise Violet VioletRed Wheat White WhiteSmoke Yellow YellowGreen

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 08-15-2006
Modified On: 01-17-2008

Personal tools