color_ extract
string | color_extract: string
returns number
Extracts a specific color component from a given color.
Accepts the following color components:
alpharedgreenbluehuesaturationlightness
{{ '#EA5AB9' | color_extract: 'red' }}
Code
{{ '#EA5AB9' | color_extract: 'red' }}Output
234
Output
234Was this page helpful?