Closed melaniegershman closed 1 month ago
I'm using #to_color to get a hex code; how can I exclude compliance, matte, depth from the output? @snuggs @janz93
#to_color
compliance, matte, depth
You can see the document in Pixel#to_color.
Unfortunately, you will need to set all arguments even if you only want to set hex=true.
hex=true
You can create utility methods or monkey patching.
I'm using
#to_color
to get a hex code; how can I excludecompliance, matte, depth
from the output? @snuggs @janz93