Seems to be an error in the library code on L4 it captures 4 groups but only unpacks 3. Changing the line to local redColor,greenColor,blueColor=hex:match('#?(..)(..)(..)')
would work better. There is also this color module that I made, but it might be a bit excesive for your user case however.
1 Like