Fixed some importing issues since you can use a Shader::Gradient outside a Canvas widget, where it was previously only accessible.
This commit is contained in:
parent
e25f3d3dea
commit
5d0fffc626
11 changed files with 126 additions and 148 deletions
|
|
@ -7,4 +7,5 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
|
||||
iced_graphics = { path = "../../graphics" }
|
||||
rand = "0.8.5"
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
use rand::{Rng, thread_rng};
|
||||
use crate::canvas::{Cursor, FillStyle, Geometry, Gradient};
|
||||
use crate::canvas::{Cursor, FillStyle, Geometry};
|
||||
use iced::widget::canvas::{Cache, Fill, Frame};
|
||||
use iced::widget::{canvas, Canvas};
|
||||
use iced::Settings;
|
||||
|
|
@ -7,6 +7,7 @@ use iced::{
|
|||
executor, Application, Color, Command, Element, Length, Point, Rectangle,
|
||||
Renderer, Size, Theme,
|
||||
};
|
||||
use iced_graphics::gradient::Gradient;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
ModernArt::run(Settings {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue