podusowski / walkers

slippy map (openstreetmap) widget for egui
MIT License
114 stars 22 forks source link

It should be possible to color grade the tiles. #84

Open podusowski opened 7 months ago

podusowski commented 7 months ago

Walkers was originally derived/extracted from Widnet - a situation awareness app. As such, it is crucial that the app is operable at night, without emitting too much excessive light. To help with that, it should be possible to apply some postprocessing to the downloaded tiles.

It seems that image crate might already be capable of that.

image

I really love the ICEYE's images look: image

woelper commented 6 months ago

Thanks for your great library! I don't think you need to color the images with image - you should be able to just tint the texture. I think for example here (https://github.com/podusowski/walkers/blob/3f3ca7aa67ef3f4ebfb63cec8477f35bfd935ccb/walkers/src/tiles.rs#L47C14-L47C30) you could just use any color other than white in add_rect_with_uv to multiply by that color, thus darkening it.

podusowski commented 6 months ago

I'll give it a shot (once I finally get into it :) ), thanks!