#[cfg(feature = "banner")]
pub mod banner;
#[cfg(feature = "canvas")]
pub mod canvas;
#[cfg(feature = "color")]
pub mod color;
#[cfg(feature = "colorize")]
pub mod colorize;
pub mod config;
#[cfg(feature = "dither")]
pub mod dither;
pub mod error;
pub(crate) mod fast_ansi;
#[cfg(feature = "game")]
pub mod game;
#[cfg(feature = "illusions")]
pub mod illusions;
pub mod image;
mod palette;
pub mod render;
pub mod rgb;
#[cfg(feature = "script")]
pub mod script;
#[cfg(feature = "segment")]
pub mod segment;
pub mod style;
pub mod system;
pub mod text;
#[cfg(feature = "video")]
pub mod video;
#[cfg(all(target_arch = "wasm32", feature = "wasm"))]
pub mod wasm;
#[cfg(feature = "banner")]
pub use crate::banner::{banner_frames, banner_lines};
#[cfg(feature = "canvas")]
pub use crate::canvas::{present_diff, screen, Canvas, Cell as GameCell, Sprite};
#[cfg(feature = "color")]
pub use crate::color::ColorTransform;
#[cfg(feature = "colorize")]
pub use crate::colorize::{
animation_color, colorize_frames, colorize_grid, colorize_grid_frames,
colorize_joined_sequence, colorize_lines, colorize_sequence, ColorFn, PixelAnimation,
};
pub use crate::config::{Config, ConfigBuilder, MediaType};
#[cfg(feature = "dither")]
pub use crate::dither::{DitherMethod, DitherOptions};
pub use crate::error::{EgerError, Result};
#[cfg(feature = "game")]
pub use crate::game::{
jump_arc, perspective_scale, rects_overlap, run_headless, shake_offset, Camera, Control, Game,
Input, Key, TickClock,
};
#[cfg(feature = "illusions")]
pub use crate::illusions::{generate as generate_illusion, render_illusion, Illusion};
#[cfg(feature = "image")]
pub use crate::image::{
gif_to_lines, image_to_file, image_to_lines, image_to_string, render_batch_parallel,
render_dynamic_image, render_image_file,
};
#[cfg(all(feature = "video", feature = "image"))]
pub use crate::image::{render_batch_async, render_image_file_async};
pub use crate::image::{render_rgb_buffer, rgb_buffer_to_string};
#[cfg(feature = "video")]
pub use crate::render::play_terminal_diffed;
pub use crate::render::{
detect_render_depth, terminal_size, DiffGranularity, RenderOutput, RenderTarget,
};
pub use crate::rgb::Rgb;
#[cfg(feature = "script")]
pub use crate::script::Script;
#[cfg(feature = "segment")]
pub use crate::segment::{
Rect, Segment, SegmentMap, SegmentOptions, SegmentStyle, SegmentStyles, SequenceStyles,
};
pub use crate::style::Style;
pub use crate::system::SystemSpecs;
#[cfg(feature = "text")]
pub use crate::text::{play_text, text_frames, CustomAnimation, TextAnimOptions, TextAnimation};
#[cfg(feature = "video")]
pub use crate::text::{play_text_async, stream_text_frames};
#[cfg(feature = "video")]
pub use crate::video::{
play_gif, play_video, probe, process_video_frames, render_colorized_video_frames,
render_video_frames, stream_colorized_video_frames, stream_video_frames, video_to_file,
video_to_file_styled, video_to_lines, video_to_lines_plain, video_to_writer, ColorMode,
VideoInfo,
};
pub mod prelude {
#[cfg(feature = "banner")]
pub use crate::banner::{banner_frames, banner_lines};
#[cfg(feature = "canvas")]
pub use crate::canvas::Cell as GameCell;
#[cfg(feature = "canvas")]
pub use crate::canvas::{present_diff, Canvas, Sprite};
#[cfg(feature = "color")]
pub use crate::color::ColorTransform;
#[cfg(feature = "colorize")]
pub use crate::colorize::{
animation_color, colorize_frames, colorize_grid, colorize_grid_frames,
colorize_joined_sequence, colorize_lines, colorize_sequence, ColorFn, PixelAnimation,
};
pub use crate::config::{Config, ConfigBuilder, InputSource, MediaType};
#[cfg(feature = "dither")]
pub use crate::dither::{DitherMethod, DitherOptions};
pub use crate::error::{ConfigError, EgerError, Result};
#[cfg(feature = "game")]
pub use crate::game::{
jump_arc, perspective_scale, rects_overlap, run_headless, shake_offset, Camera, Control,
Game, Input, Key, TickClock,
};
#[cfg(feature = "illusions")]
pub use crate::illusions::{generate as generate_illusion, render_illusion, Illusion};
#[cfg(feature = "video")]
pub use crate::render::play_terminal_diffed;
pub use crate::render::{
detect_render_depth, terminal_size, DiffGranularity, RenderOutput, RenderTarget,
};
pub use crate::rgb::Rgb;
#[cfg(feature = "script")]
pub use crate::script::Script;
#[cfg(feature = "segment")]
pub use crate::segment::{
Rect, Segment, SegmentMap, SegmentOptions, SegmentStyle, SegmentStyles, SequenceStyles,
};
pub use crate::style::Style;
pub use crate::system::SystemSpecs;
#[cfg(feature = "text")]
pub use crate::text::{
play_text, text_frames, CustomAnimation, TextAnimOptions, TextAnimation,
};
#[cfg(feature = "video")]
pub use crate::text::{play_text_async, stream_text_frames};
#[cfg(feature = "video")]
pub use crate::video::{
play_gif, process_video_frames, render_colorized_video_frames,
stream_colorized_video_frames, video_to_file, video_to_file_styled, video_to_lines_plain,
video_to_writer, ColorMode, VideoInfo,
};
pub use iascii::config::{LuminanceMethod, OutputSizing};
pub use iascii::ramp::{Ramp, RampType};
pub use iascii::render::ColorDepth;
}