Skip to main content

rocketsplash_rt/render/
mod.rs

1// <FILE>crates/rocketsplash-rt/src/render/mod.rs</FILE>
2// <DESC>Render buffer and ANSI output helpers</DESC>
3// <VERS>VERSION: 1.0.0</VERS>
4// <WCTX>Runtime library implementation</WCTX>
5// <CLOG>Define render module exports and color fill enum</CLOG>
6
7mod cls_render_buffer;
8mod fnc_apply_color;
9mod fnc_apply_shadow;
10mod fnc_to_ansi;
11
12pub use cls_render_buffer::*;
13pub use fnc_apply_color::*;
14pub use fnc_apply_shadow::*;
15pub use fnc_to_ansi::*;
16
17use rocketsplash_formats::Rgb;
18
19#[derive(Clone, Debug)]
20pub enum ColorFill {
21    Solid(Rgb),
22    Gradient {
23        start: Rgb,
24        end: Rgb,
25        vertical: bool,
26    },
27}
28
29// <FILE>crates/rocketsplash-rt/src/render/mod.rs</FILE>
30// <VERS>END OF VERSION: 1.0.0</VERS>