MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / update_frame

Method update_frame

examples/bad_apple.rs:116–123  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

114 }
115
116 fn update_frame(&mut self) {
117 if self.frame_count == 0 {
118 return;
119 }
120
121 let colors = frame_colors(self.frame_idx, self.frames, FRAME_WIDTH, FRAME_HEIGHT);
122 self.widget.set_series_point_colors(&self.series_id, colors);
123 }
124
125 fn view(&self) -> Element<'_, Message> {
126 self.widget.view().map(Message::PlotMessage)

Callers 1

updateMethod · 0.80

Calls 2

frame_colorsFunction · 0.85

Tested by

no test coverage detected