grayOut | Convert the given image (in place) to a grayed-out |
makeGray | Make a pixel grayed-out. If the pixel |
stepColour | stepColour is a utility function that simply darkens or lightens a |
Convert the given image (in place) to a grayed-out version, appropriate for a ‘disabled’ appearance.
Make a pixel grayed-out. If the pixel matches the maskColor, it won’t be changed.
stepColour is a utility function that simply darkens or lightens a color, based on the specified step value. A step of 0 is completely black and a step of 200 is totally white, and 100 results in the same color as was passed in.