get color

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
m
 
(6 intermediate revisions by one user not shown)
Line 9: Line 9:
 
   display    - display a small color square (Default = "no")
 
   display    - display a small color square (Default = "no")
 
|  
 
|  
  dv> mola
+
  dv> a = get_color("SpringGreen")
  1037x1185x1 array of short, bsq format [2,457,690 bytes]
+
  1x1x3 array of int, bsq format [12 bytes]
 +
0
 +
 +
255
 +
 +
127
 
   
 
   
dv> colorize  = colorize(mola,ignore = -32768)
 
255,000,255 = -4758.000000
 
000,000,255 = -3345.799805
 
000,255,000 = -1933.599854
 
255,255,000 = -521.399902
 
255,128,000 = 890.800293
 
255,000,000 = 2303.000000
 
1037x1185x3 array of byte, bip format [3,686,535 bytes]
 
 
 
|
 
|
[[Image:elevation.png|300px]] [[Image:colorelevation.png|300px]]
+
[[Image:get_color_20.png|600px]]
  
Grayscale elevation and colorized elevation
+
AliceBlue
 +
AntiqueWhite
 +
Aqua
 +
Aquamarine
 +
Azure
 +
Beige
 +
Bisque
 +
Black
 +
BlanchedAlmond
 +
Blue
 +
BlueViolet
 +
Brown
 +
Burlywood
 +
CadetBlue
 +
Chartreuse
 +
Chocolate
 +
Coral
 +
CornflowerBlue
 +
Cornsilk
 +
Cyan
 +
 
 +
 
 +
[[Image:get_color_40.png|600px]]
 +
 
 +
DarkBlue
 +
DarkCyan
 +
DarkGoldenrod
 +
DarkGray
 +
DarkGreen
 +
DarkKhaki
 +
DarkMagenta
 +
DarkOliveGreen
 +
DarkOrange
 +
DarkOrchid
 +
DarkRed
 +
DarkSalmon
 +
DarkSeaGreen
 +
DarkSlateBlue
 +
DarkSlateGray
 +
DarkTurquoise
 +
DarkViolet
 +
DeepPink
 +
DeepSkyBlue
 +
DimGray
 +
 
 +
 
 +
[[Image:get_color_60.png|600px]]
 +
 
 +
DodgerBlue
 +
Firebrick
 +
FloralWhite
 +
ForestGreen
 +
Fuschia
 +
Gainsboro
 +
GhostWhite
 +
Gold
 +
Goldenrod
 +
Gray
 +
Green
 +
GreenYellow
 +
Honeydew
 +
HotPink
 +
Ivory
 +
Khaki
 +
Lavender
 +
LavenderBlush
 +
LawnGreen
 +
LemonChiffon
 +
 
 +
 
 +
[[Image:get_color_80.png|600px]]
 +
 
 +
LightBlue
 +
LightCoral
 +
LightCyan
 +
LightGoldenrod
 +
LightGoldenrodYellow
 +
LightGray
 +
LightGreen
 +
LightPink
 +
LightSalmon
 +
LightSeaGreen
 +
LightSkyBlue
 +
LightSlateBlue
 +
LightSlateGray
 +
LightSteelBlue
 +
LightYellow
 +
Lime
 +
LimeGreen
 +
Linen
 +
Magenta
 +
Maroon
 +
 
 +
 
 +
[[Image:get_color_100.png|600px]]
 +
 
 +
MediumAquamarine
 +
MediumBlue
 +
MediumOrchid
 +
MediumPurple
 +
MediumSeaGreen
 +
MediumSlateBlue
 +
MediumSpringGreen
 +
MediumTurquoise
 +
MediumVioletRed
 +
MidnightBlue
 +
MintCream
 +
MistyRose
 +
Moccasin
 +
NavajoWhite
 +
Navy
 +
OldLace
 +
Olive
 +
OliveDrab
 +
Orange
 +
OrangeRed
 +
 
 +
 
 +
[[Image:get_color_120.png|600px]]
 +
 
 +
Orchid
 +
PaleGoldenrod
 +
PaleGreen
 +
PaleTurquoise
 +
PaleVioletRed
 +
PapayaWhip
 +
PeachPuff
 +
Peru
 +
Pink
 +
Plum
 +
PowderBlue
 +
Purple
 +
Red
 +
RosyBrown
 +
RoyalBlue
 +
SaddleBrown
 +
Salmon
 +
SandyBrown
 +
SeaGreen
 +
Seashell
 +
 
 +
 
 +
[[Image:get_color_140.png|600px]]
 +
 
 +
Sienna
 +
Silver
 +
SkyBlue
 +
SlateBlue
 +
SlateGray
 +
Snow
 +
SpringGreen
 +
SteelBlue
 +
Tan
 +
Teal
 +
Thistle
 +
Tomato
 +
Turquoise
 +
Violet
 +
VioletRed
 +
Wheat
 +
White
 +
WhiteSmoke
 +
Yellow
 +
YellowGreen
 
|
 
|
*[[get_color]]
+
*[[length]]
*[[interp]]
+
*[[translate]]
*[[rgb2hsv]]
+
 
|
 
|
*[[thm.contour]]
+
*[[colorize]]
 
*[[scalebar]]
 
*[[scalebar]]
 +
|*image_stretch.dvrc
 
|
 
|
[[Media:colorize.dvrc|colorize()]]
+
}}
|
+
 
+
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:User Defined Functions]]
 
[[category:Image Stretching]]
 
[[category:Image Stretching]]
}}
 

Latest revision as of 16:15, 17 January 2008


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