Sets the value of the specified channel on the passed in color.
If the amount parameter is undefined it gets the value of the specified channel.
amount
undefined
The mode and channel to be retrieved. For example 'rgb.b' will return the value of the blue channel in the RGB color space of that color.
'rgb.b'
import { mc } from '@skchr/color'console.log(mc('rgb.g')('#a1bd2f'))// 0.7411764705882353 Copy
import { mc } from '@skchr/color'console.log(mc('rgb.g')('#a1bd2f'))// 0.7411764705882353
Sets the value of the specified channel on the passed in color.
If the
amountparameter isundefinedit gets the value of the specified channel.