possible documentation typo regarding color none
Posted: 2008-04-15T12:32:29-07:00
In reviewing your page:
http://imagemagick.org/script/color.php
It says near the middle:
"There is also a 'none' color that is fully transparent. This color is shorthand for rgba(0, 0, 0, 0.0)."
But at the bottom of the color chart and page it shows none and transparent as:
none rgba( 0, 0, 0, 1.0) #00000000
transparent rgba( 0, 0, 0, 1.0) #00000000
Which is correct rgba(0,0,0,0) or rgba(0,0,0,1)? I suspect the former! A correction seems in order somewhere.
Also, I have recently seen a post that said one could do colorname-none to get a transparent color, e.g. red-none? For example to make a transparent gradient:
convert -size 100x100 gradient:red-none redgrad.png
If this hyphenated syntax is valid, could you put a comment about this on this page?
http://imagemagick.org/script/color.php
It says near the middle:
"There is also a 'none' color that is fully transparent. This color is shorthand for rgba(0, 0, 0, 0.0)."
But at the bottom of the color chart and page it shows none and transparent as:
none rgba( 0, 0, 0, 1.0) #00000000
transparent rgba( 0, 0, 0, 1.0) #00000000
Which is correct rgba(0,0,0,0) or rgba(0,0,0,1)? I suspect the former! A correction seems in order somewhere.
Also, I have recently seen a post that said one could do colorname-none to get a transparent color, e.g. red-none? For example to make a transparent gradient:
convert -size 100x100 gradient:red-none redgrad.png
If this hyphenated syntax is valid, could you put a comment about this on this page?