Expand description
rael_img is a utility crate for loading and processing images for use with the rael terminal rendering engine.
It provides a function to load an image from a file, optionally resize it, and convert its pixels
into a format suitable for rael’s Canvas.
Functions§
- load_
image - Loads an image from the given path, processes it according to the specified parameters,
and returns a list of (X, Y, color) tuples. These tuples represent the pixels of the
processed image, ready to be drawn onto a
rael::Canvas.