We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nice script, but would be good to format the hex and rgb values according to web standards.
Ex hex is always written #ff00ff not ff00ff. So in convert.lua:4, your could instead write:
#ff00ff
ff00ff
convert.lua:4
local hash,redColor,greenColor,blueColor=hex:match('(.)(..)(..)(..)')
And rgb value doesn't take alpha, but rgba does. But the alpha goes from 0 to 1 instead of 0 to 100, so on row 18-21:
rgb
rgba
if alpha == nil then return redColor, greenColor, blueColor end return redColor, greenColor, blueColor, alpha
Can write a PR if you want :)
The text was updated successfully, but these errors were encountered:
Agreed, there should be an option for this though
Sorry, something went wrong.
Thank you, fixed!
No branches or pull requests
Nice script, but would be good to format the hex and rgb values according to web standards.
Ex hex is always written
#ff00ff
notff00ff
. So inconvert.lua:4
, your could instead write:And
rgb
value doesn't take alpha, butrgba
does. But the alpha goes from 0 to 1 instead of 0 to 100, so on row 18-21:Can write a PR if you want :)
The text was updated successfully, but these errors were encountered: