2022-11-28 19:42:53 +01:00
|
|
|
## 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">
|
2023-09-07 05:05:43 +02:00
|
|
|
<img src="https://iced.rs/examples/geometry.gif">
|
2022-11-28 19:42:53 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
|
|
|
|
cargo run --package geometry
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|