pub trait ViewElement {
    // Required method
    fn active_pixels(&self) -> Vec<Point>;
}
Expand description

ViewElement is a trait that must be implemented by any element that can be blitted to a View

Required Methods§

source

fn active_pixels(&self) -> Vec<Point>

Return a vector of every coordinate where a pixel should be placed and its respective ColChar. If your whole object is a solid colour, consider using utils::points_to_pixels() which will add the same ColChar to every point and can then be used as this function’s output

Implementors§