hyperchad_color 0.1.4

HyperChad color package
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use quickcheck::{Arbitrary, Gen};

use crate::Color;

impl Arbitrary for Color {
    fn arbitrary(g: &mut Gen) -> Self {
        Self {
            r: u8::arbitrary(g),
            g: u8::arbitrary(g),
            b: u8::arbitrary(g),
            a: Option::arbitrary(g),
        }
    }
}