dcolor 0.1.0

Color types and conversion
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2017, Marty Mills <daggerbot@gmail.com>
// This software is available under the terms of the zlib license.
// See COPYING.md for more information.

/// Red-green-blue color type.
pub struct Rgb<T> {
    pub r: T,
    pub g: T,
    pub b: T,
}

/// Red-green-blue-alpha color type.
pub struct Rgba<T> {
    pub r: T,
    pub g: T,
    pub b: T,
    pub a: T,
}