color.r
Parameters
- $color
A color specified in hexidecimal, rgb(), or rgba().
This template extracts the red portion of a color, returning a number between 0 and 255. It accepts six-digit and three-digit hexidecimal color codes, colors specified with rgb(), and colors specified with rgba(). It does not accept HSL or named HTML colors.