pub fn diffuse_stucki(
data: &mut [u8],
width: i32,
height: i32,
x: i32,
y: i32,
depth: i32,
error: i32,
) -> Result<()>
Expand description
Stucki’s Method
Col0 | Col1 | Col2 | Col3 | Col4 |
---|---|---|---|---|
curr | 8/48 | 4/48 | ||
2/48 | 4/48 | 8/48 | 4/48 | 2/48 |
1/48 | 2/48 | 4/48 | 2/48 | 1/48 |