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.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | cd9e543e67 | a05e7dc68aa60c4ad0d424de5f909616ad9f8b6b0a796ee5bd23391188f56288 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | f2aa46eb6533961d5b8ee2518da2c2fefcc4ee72621cc007109dcd0ca50f1b12 |