mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16: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) {
|
pub fn randomize_color (&mut self) {
|
||||||
match self.selected {
|
match self.selected {
|
||||||
ArrangementFocus::Mix => {},
|
ArrangementFocus::Mix => {},
|
||||||
ArrangementFocus::Track(t) => { todo!("randomize track color") },
|
ArrangementFocus::Track(t) => { self.tracks[t].color = random_color() },
|
||||||
ArrangementFocus::Scene(s) => { todo!("randomize scene color") },
|
ArrangementFocus::Scene(s) => { self.scenes[s].color = random_color() },
|
||||||
ArrangementFocus::Clip(t, s) => if let Some(phrase) = &self.scenes[s].clips[t] {
|
ArrangementFocus::Clip(t, s) => if let Some(phrase) = &self.scenes[s].clips[t] {
|
||||||
phrase.write().unwrap().color = random_color();
|
phrase.write().unwrap().color = random_color();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue