Module photon_rs::helpers

source ·
Expand description

Helper functions for converting between various formats

Functions

Convert a PhotonImage to a DynamicImage type (struct used by the image crate)
Get raw pixels (as a vec of u8s) from a DynamicImage
Save a DynamicImage to a path.
Gets the square distance between two colours