summaryrefslogtreecommitdiffstats
path: root/examples/geometry/README.md
blob: 4d5c81cbef376a68a099ec9fdbc110d930c4e2a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Geometry

A custom widget showcasing how to draw geometry with the `Mesh2D` primitive in [`iced_wgpu`](../../wgpu).

The __[`main`]__ file contains all the code of the example.

<div align="center">
  <a href="https://gfycat.com/activeunfitkangaroo">
    <img src="https://thumbs.gfycat.com/ActiveUnfitKangaroo-small.gif">
  </a>
</div>

You can run it with `cargo run`:
```
cargo run --package geometry
```

[`main`]: src/main.rs