Registry / Library

library · v0.1.1
Alpha Over Gray
Composite one straight-alpha grayscale sample over an opaque background with nearest byte rounding.
Use Alpha Over Gray
use vendor::alpha_over_gray::alpha_over_gray;
Run the example
nest demo alpha_over_gray@0.1.1
blyxc native-run alpha_over_gray-demo/main.blyx
Example source and expected output
use vendor::alpha_over_gray::alpha_over_gray;
fn main() {
println!(alpha_over_gray(255,0,128));
}
Expected output
128
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 8e5b7b9add | db38b3a41c321186d03a1160491414b1a2e2dd2c4b649656dc8296c7b6ebe910 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 8c71b893060e466e9e6ba07b6d8586e38b74b7cb603c4d2a59bfe07373134ab7 |