get color

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 18: Line 18:
 
   
 
   
 
|
 
|
[[Image:get_color_20.png]]
+
[[Image:get_color_20.png|400px]]
 
AliceBlue
 
AliceBlue
 
AntiqueWhite
 
AntiqueWhite
Line 39: Line 39:
 
Cornsilk
 
Cornsilk
 
Cyan
 
Cyan
[[Image:get_color_40.png]]
+
[[Image:get_color_40.png|400px]]
 
DarkBlue
 
DarkBlue
 
DarkCyan
 
DarkCyan
Line 60: Line 60:
 
DeepSkyBlue
 
DeepSkyBlue
 
DimGray
 
DimGray
[[Image:get_color_60.png]]
+
[[Image:get_color_60.png|400px]]
 
DodgerBlue
 
DodgerBlue
 
Firebrick
 
Firebrick
Line 81: Line 81:
 
LawnGreen
 
LawnGreen
 
LemonChiffon
 
LemonChiffon
[[Image:get_color_80.png]]
+
[[Image:get_color_80.png|400px]]
 
LightBlue
 
LightBlue
 
LightCoral
 
LightCoral
Line 102: Line 102:
 
Magenta
 
Magenta
 
Maroon
 
Maroon
[[Image:get_color_100.png]]
+
[[Image:get_color_100.png|400px]]
 
MediumAquamarine
 
MediumAquamarine
 
MediumBlue
 
MediumBlue
Line 123: Line 123:
 
Orange
 
Orange
 
OrangeRed
 
OrangeRed
[[Image:get_color_120.png]]
+
[[Image:get_color_120.png|400px]]
 
Orchid
 
Orchid
 
PaleGoldenrod
 
PaleGoldenrod
Line 144: Line 144:
 
SeaGreen
 
SeaGreen
 
Seashell
 
Seashell
[[Image:get_color_140.png]]
+
[[Image:get_color_140.png|400px]]
 
Sienna
 
Sienna
 
Silver
 
Silver

Revision as of 17:05, 15 August 2006


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