Re-introduce the geometry example
This commit is contained in:
parent
633150581f
commit
324d60db63
5 changed files with 244 additions and 0 deletions
18
examples/geometry/README.md
Normal file
18
examples/geometry/README.md
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue