pub struct Gradient {
pub ramp: Ramp,
pub fill: bool,
pub shape: Shape,
pub ellipse: [f64; 3],
pub start: (f64, f64),
pub end: (f64, f64),
}Expand description
A gradient or fill layer (Layer.GradationFillInfo).
Fields§
§ramp: RampThe colours.
fill: boolA fill layer (べた塗り): the first stop’s colour everywhere.
shape: ShapeLinear or circular.
ellipse: [f64; 3]Ellipse width and height (pixels) and rotation (degrees).
start: (f64, f64)Start point in layer pixels.
end: (f64, f64)End point in layer pixels.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnsafeUnpin for Gradient
impl UnwindSafe for Gradient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more