Struct leechbar::Color [] [src]

pub struct Color { /* fields omitted */ }

RGBA color structure.

Methods

impl Color
[src]

[src]

Create a new color. This takes the RGBA values of the red, green, blue and alpha channel as a range from 0 to 255.

Examples

use leechbar::Color;

// Create an opaque pink
let color = Color::new(255, 0, 255, 255);

Trait Implementations

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Eq for Color
[src]

impl Hash for Color
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Color
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.