This will allow a slightly cleaner solution preserving light/dark mask determination while quantizing for macOS. While the normal quantize tries to make an average, these utility functions allow us to pick the smallest or lowest, which is useful for respecting the mask determination threshold in that specific case.
This will allow a slightly cleaner solution preserving light/dark mask determination while quantizing for macOS. While the normal quantize tries to make an average, these utility functions allow us to pick the smallest or lowest, which is useful for respecting the mask determination threshold in that specific case.