rudimentary sample grid

This commit is contained in:
🪞👃🪞 2025-04-24 23:13:10 +03:00
parent 1cc3a58826
commit 09edbbe730

View file

@ -2,7 +2,10 @@ use crate::*;
impl Sampler {
pub fn view_grid (&self) -> impl Content<TuiOut> {
"sampler grid view"
let pos = |x|Align::c(Fixed::xy(64, 32, Align::nw(x)));
pos(Map::new(||0..8u16, |x, _|Map::new(||0..8u16, move|y, _|{
Pull::x(2, Push::xy(x * 5, y * 2, Tui::bg(Color::Black, "SMPL")))
})))
}
}