diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-09-14 23:30:46 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-09-14 23:30:46 +0200 |
| commit | b0d4f79820eecafadaffc443df57eb0d18872b9e (patch) | |
| tree | 3b449d608f2b1ad6d6530fb34429ee12aff819d4 /src | |
| parent | 038ef83ec9c57add1d53202bfdb9cf141b6dc6ab (diff) | |
| download | gof-rs-b0d4f79820eecafadaffc443df57eb0d18872b9e.tar.xz gof-rs-b0d4f79820eecafadaffc443df57eb0d18872b9e.zip | |
Added all patterns to the code and made that you could select between them with j and k and animate them with a and stop the animation with s
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui.rs | 2589 |
1 files changed, 2569 insertions, 20 deletions
@@ -21,6 +21,7 @@ use tui::{ use crate::generation::*; + pub struct StatefulList<T> { state: ListState, items: Vec<T>, @@ -87,29 +88,2563 @@ impl<'a> App<'a> { App { items: StatefulList::with_items(vec