Enumeration pvc.options.varia.ColorString
Extends
string.
Enumeration Detail
pvc.options.varia.ColorString
This type is a documentation type and
really just documents the format of color strings.
Colors can be specified as a string that follows one of the following formats:
-
an RGB or HSL color, as defined in http://www.w3.org/TR/css3-color/:
- '#AE7'
- '#A0E070'
- rgb(255, 0, 0)
- rgba(100%, 0, 0, 0.5)
- hsl(100, 50%, 20%)
- hsla(100, 50%, 20%, 0.5)
-
an SVG named color, as defined in http://www.w3.org/TR/SVG/types.html#ColorKeywords:
- 'aliceblue'
- 'aquamarine'
-
a subset of the CSS3 gradients format,
as defined in http://www.w3.org/TR/css3-images/#gradients:
- 'linear-gradient(90deg, green, blue)'
- 'linear-gradient(to bottom left, red, yellow 20%, green, blue)'
- 'linear-gradient(red, rgb(0,0,255))'
- 'radial-gradient(red, yellow 40%, red)'
- 'transparent' for a transparent background
See the associated protovis documentation at http://mbostock.github.com/protovis/jsdoc/symbols/pv.html#.color.