Enable arc example
This commit is contained in:
parent
2dbcdba209
commit
effa6881f7
3 changed files with 7 additions and 4 deletions
|
|
@ -58,6 +58,7 @@ members = [
|
||||||
"style",
|
"style",
|
||||||
"wgpu",
|
"wgpu",
|
||||||
"winit",
|
"winit",
|
||||||
|
"examples/arc",
|
||||||
"examples/bezier_tool",
|
"examples/bezier_tool",
|
||||||
"examples/clock",
|
"examples/clock",
|
||||||
"examples/color_palette",
|
"examples/color_palette",
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced = { path = "../../..", features = ["canvas", "tokio", "debug"] }
|
iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
use std::{f32::consts::PI, time::Instant};
|
use std::{f32::consts::PI, time::Instant};
|
||||||
|
|
||||||
use iced::executor;
|
use iced::executor;
|
||||||
use iced::pure::widget::canvas::{
|
use iced::widget::canvas::{
|
||||||
self, Cache, Canvas, Cursor, Geometry, Path, Stroke,
|
self, Cache, Canvas, Cursor, Geometry, Path, Stroke,
|
||||||
};
|
};
|
||||||
use iced::pure::{Application, Element};
|
use iced::{
|
||||||
use iced::{Command, Length, Point, Rectangle, Settings, Subscription, Theme};
|
Application, Command, Element, Length, Point, Rectangle, Settings,
|
||||||
|
Subscription, Theme,
|
||||||
|
};
|
||||||
|
|
||||||
pub fn main() -> iced::Result {
|
pub fn main() -> iced::Result {
|
||||||
Arc::run(Settings {
|
Arc::run(Settings {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue