Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Alpha Over Gray

Composite one straight-alpha grayscale sample over an opaque background with nearest byte rounding.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files8e5b7b9adddb38b3a41c321186d03a1160491414b1a2e2dd2c4b649656dc8296c7b6ebe910
0.1.0Download ZIP · Browse files6349f237848c71b893060e466e9e6ba07b6d8586e38b74b7cb603c4d2a59bfe07373134ab7