Click the green flag.
Thanks to @PullJosh for the original framework Thanks to @BookOwl for the inspiration / basic idea How it works: 1) It gets the weighted brightness of each pixel using @BookOwl's formula 2) It reduces the brightness information by dividing by 255 and multiplying by the length of the thresholds list and rounding that value. 3) We then lookup the new brightness in the thresholds list * 4) Using my HSB to RGB converter, we take a predefined hue (13) and the new brightness as well as a saturation of 1 to create the new color. * which means that this can be used to create weighted brightness values in the end image too