pub fn refresh_animated(animation: u64)Expand description
As refresh, inside withAnimation — see ease_in_out.
Examples found in repository?
More examples
examples/dashboard.rs (line 95)
85fn refresh() {
86 static SEED: AtomicU64 = AtomicU64::new(0x9E37_79B9);
87 for slot in &LOAD {
88 let mut x = SEED.load(Ordering::Relaxed);
89 x ^= x << 13;
90 x ^= x >> 7;
91 x ^= x << 17;
92 SEED.store(x, Ordering::Relaxed);
93 slot.store(x % 101, Ordering::Relaxed);
94 }
95 state::refresh_animated(state::ease_in_out(0.6));
96}