Struct nanovg::Color[][src]

pub struct Color(_);

A 32-bit color value. Used to fill or stroke paths with solid color.

Methods

impl Color
[src]

Create a new color by setting all components manually. Values are in the range 0.0...1.0.

Create a new color from three 8-bit color channels.

Create a new color from three 8-bit color channels and an 8-bit alpha channel.

Create a new color from three hsl channels.

Create a new color from three hsl channels and an 8-bit alpha channel.

Get the red component.

Get the green component.

Get the blue component.

Get the alpha component.

Set the red component.

Get the green component.

Get the blue component.

Get the alpha component.

Create a new color by linearly interpolating between two existing colors.

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

Formats the value using the given formatter. Read more

impl Paint for Color
[src]

Auto Trait Implementations

impl Send for Color

impl Sync for Color