graphics-rs 0.0.10

A simple, extendable, CPU based 2D graphics library. Also supports CloudPoints and rotation!
Documentation
1
2
3
4
5
6
7
8
9
pub trait IsColor {
    fn new(red: u8, green: u8, blue: u8, alpha: u8) -> Self;
    fn alpha(&self) -> u8;
    fn red(&self) -> u8;
    fn green(&self) -> u8;
    fn blue(&self) -> u8;
    fn mix(&self, rhs: Self) -> Self;
    fn with_alpha(&self, alpha: u8) -> Self;
}