MCPcopy Create free account
hub / github.com/elftausend/graplot / main

Function main

examples/pie_chart.rs:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2use litequad::prelude::Color;
3
4fn main() {
5 // without labels: let pie = Pie::new([35., 25., 25., 15.]);
6 let draw = [(35., "label"), (25., "len"), (25., "labeled"), (15., "test")];
7 let mut pie = Pie::new(draw);
8 pie.color(0, Color::new(0.6, 0.2, 0.3, 1.));
9 pie.show();
10}

Callers

nothing calls this directly

Calls 2

colorMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected