gemini-engine 0.14.2

A 2D/3D monospaced ASCII rendering engine for the terminal
Documentation
//! This module holds the structs related to display of ASCII characters, both text and ASCII art

mod animated_sprite;
pub use animated_sprite::AnimatedSprite;

mod sprite;
pub use sprite::Sprite;

mod text;
pub use text::Text;

mod alignment;
pub use alignment::{TextAlign, TextAlign2D};

/// Remove all leading newlines from the string
#[must_use]
pub fn remove_leading_newlines(texture: &str) -> String {
    let mut texture: Vec<char> = texture.chars().rev().collect();

    while texture.last() == Some(&'\n') {
        texture.pop();
    }

    texture.iter().rev().collect()
}