MCPcopy Create free account
hub / github.com/Ruddle/Fomos / put

Function put

app_console/src/main.rs:58–62  ·  view source on GitHub ↗
(pixel: &mut RGBA, v: Vec3<f32>)

Source from the content-addressed store, hash-verified

56}
57
58fn put(pixel: &mut RGBA, v: Vec3<f32>) {
59 pixel.r = v.x as u8;
60 pixel.g = v.y as u8;
61 pixel.b = v.z as u8;
62}
63
64fn get(mut x: isize, mut y: isize, src: &[RGBA], wi: isize, hi: isize) -> Vec3<f32> {
65 if x < 0 {

Callers 1

blurFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected