8000 color · emcconville/cif Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Eric McConville edited this page Jun 29, 2015 · 5 revisions

Color

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.

Example Color Formats

  • 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.

Example Usage:

cif -filter CIConstantColorGenerator \
    -inputColor "hsl(180, 100%, 50%)" \
    -size 200x2000 \
    -outputImage cyan.png

Previous: Affine Transform | Next Data

Clone this wiki locally
0