3 /// Performs gamma correction on a single color channel.
5 /// Note that Sass does not have a `pow()` function, so the calculation
8 /// @argument {number (0-1)} $channel
10 /// @return {number (0-1)}
14 @function _gamma($channel) {
15 @if $channel < 0.03928 {
16 @return $channel / 12.92;
18 $c: ($channel + 0.055) / 1.055;
19 @return (133 * $c * $c * $c + 155 * $c * $c) / 288;