X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fcolor.html;h=64c8d2fcacb1310b79092a43970229c14b23d81f;hb=a31d1a00f0781e353db7f93d14017642d9750399;hp=0ca7b49e0ee8756df0c1ea8bd4d04608b8c8a8e7;hpb=3cd7cc9c4c89ec3b5b1109117e196124ae07f66c;p=imagemagick diff --git a/www/color.html b/www/color.html index 0ca7b49e0..64c8d2fca 100644 --- a/www/color.html +++ b/www/color.html @@ -1,204 +1,244 @@ - - - -
- - + + + + + +[Example Usage • Color Model Specification • List of Color Names]
+[Example Usage • Color Model Specification • List of Color Names]
A number of ImageMagick options and methods take a color as an argument. The color can then be given as a color name (there is a limited but large set of these; see below) or it can be given as a set of numbers (in decimal or hexadecimal), each corresponding to a channel in an RGB or RGBA color model. HSL, HSLA, HSB, HSBA, CMYK, or CMYKA color models may also be specified. These topics are briefly described in the sections below.
@@ -219,7 +259,7 @@ color swatch of that color and to convert to all the other color models.Each of the following commands produces the same lime border around the image. (Use "double quotes" for Windows.)
-$magick> convert -bordercolor lime -border 10 image.jpg image.png $magick> convert -bordercolor '#0f0' -border 10 image.jpg image.png $magick> convert -bordercolor '#00ff00' -border 10 image.jpg image.png $magick> convert -bordercolor 'rgb(0,255,0)' -border 10 image.jpg image.png $magick> convert -bordercolor 'rgb(0,100%,0)' -border 10 image.jpg image.png
+$ convert -bordercolor lime -border 10 image.jpg image.png $ convert -bordercolor '#0f0' -border 10 image.jpg image.png $ convert -bordercolor '#00ff00' -border 10 image.jpg image.png $ convert -bordercolor 'rgb(0,255,0)' -border 10 image.jpg image.png $ convert -bordercolor 'rgb(0,100%,0)' -border 10 image.jpg image.png
The list of recognized color names (for example, aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow, and others) is shown in a table further below.
#f00 #rgb #ff0000 #rrggbb + #ff0000ff #rrggbbaa #ffff00000000 #rrrrggggbbbb #ffff00000000ffff #rrrrggggbbbbaaaa rgb(255, 0, 0) an integer in the range 0—255 for each component @@ -5056,32 +5097,32 @@ color swatch of that color and to convert to all the other color models.