What would be a computationally inexpensive way of finding the night-mode of an image in canvas
?
Doesn't have to superb just fast way to turn an image from visiually day to night.
Thanks a ton.
What would be a computationally inexpensive way of finding the night-mode of an image in canvas
?
Doesn't have to superb just fast way to turn an image from visiually day to night.
Thanks a ton.
You'd have to experiment with different exact levels and values, but I'd desaturate the color, then dim the image, more strongly on the R and G components than the B component so that the resulting image was slightly blue-tinted.
Do you know how to draw an image into a canvas
, grab the pixels, loop through the pixels to manipulate them, then draw them back?