TinyColor
TinyColor copied to clipboard
Why does this function toHexString() input {r:256,g:0,b:0,a:0.5}, and the values returned by {r:256,g:0,b:0,a:0.5} are the same, Both "#ff0000" cannot distinguish transparency parameters
TinyColor2({r:256,g:0,b:0,a:1}).toHexString() TinyColor2({r:256,g:0,b:0,a:0.5}).toHexString()
@skoll1 you have to use toHex8String instead.
why 256 instead of 255?