Skip to content

Commit

Permalink
Add colorSpace enum property to functions to enable color space aware…
Browse files Browse the repository at this point in the history
… interpolation (#515)
  • Loading branch information
tmcw authored Oct 5, 2016
1 parent f32dd1c commit 54234a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,22 @@
},
"doc": "The interpolation strategy to use in function evaluation.",
"default": "exponential"
},
"colorSpace": {
"type": "enum",
"values": {
"rgb": {
"doc": "Use the RGB color space to interpolate color values"
},
"lab": {
"doc": "Use the LAB color space to interpolate color values."
},
"interval": {
"doc": "Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."
}
},
"doc": "The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",
"default": "rgb"
}
},
"function_stop": {
Expand Down
Loading

0 comments on commit 54234a2

Please sign in to comment.