AlexV

Results 84 comments of AlexV

Marking as draft because https://github.com/openwisp/ansible-openwisp2/issues/520#issuecomment-3113972797

I thought a bit about this, and to avoid update problems, I'd like to: - implement `std::convert::From for Color` (with alpha) - modify from_hex to make obvious alpha is always...

Looking at SDL, there is a whole structure dedicated to this kind of conversions: https://wiki.libsdl.org/SDL2/SDL_PixelFormat Not sure what to make of it in our case here... I guess `from_hex` is...

Just jumping in here since I encountered issues with image manipulation for a small project: We probably want to check overflows of usize type here. see for instance https://docs.rs/image/latest/src/image/buffer.rs.html#1271