mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
rudimentary sample grid
This commit is contained in:
parent
1cc3a58826
commit
09edbbe730
1 changed files with 4 additions and 1 deletions
|
|
@ -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")))
|
||||
})))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue