Docs.rs
agg-0.1.0
agg 0.1.0
Docs.rs crate page
BSD-2-Clause
Links
Homepage
Documentation
Repository
Crates.io
Source
Owners
savage13
Dependencies
freetype-rs ^0.19.0
normal
Versions
36.44%
of the crate is documented
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module color
Structs
Functions
?
Module
agg
::
color
source
·
[
−
]
Expand description
Colors
Structs
Gray8
Gray scale
Rgb8
Color as Red, Green, Blue
Rgba8
Color as Red, Green, Blue, and Alpha
Rgba8pre
Color as Red, Green, Blue, and Alpha with pre-multiplied components
Rgba32
Srgba8
Color as standard Red, Green, Blue, Alpha
Functions
average
Average
lightness
Lightness (max(R, G, B) + min(R, G, B)) / 2
luminance