[][src]Struct vega_lite_4::PurpleLinearGradient

pub struct PurpleLinearGradient {
    pub gradient: Option<Gradient>,
    pub id: Option<String>,
    pub stops: Option<Vec<GradientStop>>,
    pub x1: Option<f64>,
    pub x2: Option<f64>,
    pub y1: Option<f64>,
    pub y2: Option<f64>,
    pub r1: Option<f64>,
    pub r2: Option<f64>,
    pub expr: Option<String>,
}

Fields

gradient: Option<Gradient>

The type of gradient. Use "linear" for a linear gradient.

The type of gradient. Use "radial" for a radial gradient.

id: Option<String>stops: Option<Vec<GradientStop>>

An array of gradient stops defining the gradient color sequence.

x1: Option<f64>

The starting x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The x-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.

Default value: 0.5

x2: Option<f64>

The ending x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 1

The x-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.

Default value: 0.5

y1: Option<f64>

The starting y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The y-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.

Default value: 0.5

y2: Option<f64>

The ending y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The y-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.

Default value: 0.5

r1: Option<f64>

The radius length, in normalized [0, 1] coordinates, of the inner circle for the gradient.

Default value: 0

r2: Option<f64>

The radius length, in normalized [0, 1] coordinates, of the outer circle for the gradient.

Default value: 0.5

expr: Option<String>

Vega expression (which can refer to Vega-Lite parameters).

Trait Implementations

impl Clone for PurpleLinearGradient[src]

impl Debug for PurpleLinearGradient[src]

impl Default for PurpleLinearGradient[src]

impl<'de> Deserialize<'de> for PurpleLinearGradient[src]

impl From<PurpleLinearGradient> for MarkConfigExprOrSignalRefColor[src]

impl Serialize for PurpleLinearGradient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.