/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let max_samples = graph.values.capacity() as f32; let w = rect.width() / max_samples; let h = rect.height();
let color_t0 = egui::Color32::from_rgb(0, 255, 0);
for (index, sample) in graph.values.iter().enumerate() { if !sample.is_finite() { continue;
} let sample = *sample as f32; let x1 = rect.right() - index as f32 * w; let x0 = x1 - w;
let y0 = rect.bottom() - (sample / stats.max as f32) * h; let y1 = rect.bottom();
let rect = egui::Rect::from_min_max(
egui::pos2(x0, y0),
egui::pos2(x1, y1),
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.