mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
randomize track and scene colors
This commit is contained in:
parent
1891cdabfd
commit
cd2a94d808
1 changed files with 2 additions and 2 deletions
|
|
@ -278,8 +278,8 @@ impl<E: Engine> Arrangement<E> {
|
|||
pub fn randomize_color (&mut self) {
|
||||
match self.selected {
|
||||
ArrangementFocus::Mix => {},
|
||||
ArrangementFocus::Track(t) => { todo!("randomize track color") },
|
||||
ArrangementFocus::Scene(s) => { todo!("randomize scene color") },
|
||||
ArrangementFocus::Track(t) => { self.tracks[t].color = random_color() },
|
||||
ArrangementFocus::Scene(s) => { self.scenes[s].color = random_color() },
|
||||
ArrangementFocus::Clip(t, s) => if let Some(phrase) = &self.scenes[s].clips[t] {
|
||||
phrase.write().unwrap().color = random_color();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue