-
Notifications
You must be signed in to change notification settings - Fork 0
color
Eric McConville edited this page Jun 29, 2015
·
5 revisions
Color input can be given in a few formats. Hexadecimal and color names are the most common, but color functions for RGB & HSL are supported.
- Hex-triplet
#00FFFF
- Hex-triplet short-hand
#0FF
- Hex-triplet with alpha channel
#00FFFFFF
- Vector of ranges between 0.0 & 1.0
0.0,1.0,1.0
- RGB Color Functions
rgb(0, 255, 255)
- RGB Color Functions with Alpha chanel
rgba(0, 255, 255, 1.0)
- HSL Color Functions
hsl(180, 100%, 50%)
- HSL Color Functions with Alpha chanel
hsl(180, 100%, 50%, 1.0)
- X11 Color Names
cyan
Note: all colors, except color names, should be quoted/escaped from bash interpreter.
cif -filter CIConstantColorGenerator \
-inputColor "hsl(180, 100%, 50%)" \
-size 200x2000 \
-outputImage cyan.png
Previous: Affine Transform | Next Data