1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Some code cleanup

This commit is contained in:
Emil Ernerfeldt
2021-04-01 23:07:58 +02:00
parent facb01a7c2
commit 1c955e56fe
4 changed files with 6 additions and 22 deletions

View File

@@ -205,7 +205,7 @@ impl WidgetGallery {
}
fn example_plot() -> egui::plot::Plot {
let n = 512;
let n = 128;
let curve = egui::plot::Curve::from_values_iter((0..=n).map(|i| {
use std::f64::consts::TAU;
let x = egui::remap(i as f64, 0.0..=(n as f64), -TAU..=TAU);