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

Pixel Luma

Compute integer BT.601-style luma using fixed weights 77, 150 and 29 with nearest rounding. RGB channels must be bytes.

Source repository · Package JSON

Use Pixel Luma

use vendor::pixel_luma::pixel_luma;

Run the example

nest demo pixel_luma@0.1.1
blyxc native-run pixel_luma-demo/main.blyx
Example source and expected output
use vendor::pixel_luma::pixel_luma;

fn main() {
    println!(pixel_luma(255,255,255));
}

Expected output

255

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filescd9e543e67a05e7dc68aa60c4ad0d424de5f909616ad9f8b6b0a796ee5bd23391188f56288
0.1.0Download ZIP · Browse files6349f23784f2aa46eb6533961d5b8ee2518da2c2fefcc4ee72621cc007109dcd0ca50f1b12