mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Pencil test: a size 9 line in Grayscale 32, where size 2 paints nothing (#17560)
This commit is contained in:
1 parent
8f347b9d38
commit
edfca55824
1 file changed
+2
-1
@@ -713,7 +713,8 @@ fn works_on_cmyk_and_16_bit() {
|
||||
let mut s = crate::session();
|
||||
s.execute("file.new", json!({"width": 60, "height": 30, "mode": mode, "depth": depth})).unwrap();
|
||||
s.execute("paint.stroke", json!({"points": [[5, 15], [55, 15]], "preset": "Chalk", "color": "#000000"})).unwrap();
|
||||
s.execute("paint.pencil", json!({"points": [[5, 5], [55, 5]], "size": 2, "color": "#000000"})).unwrap();
|
||||
// Size 9: a 2 px Pencil paints nothing in 32 bit, as in the reference (#17560).
|
||||
s.execute("paint.pencil", json!({"points": [[5, 5], [55, 5]], "size": 9, "color": "#000000"})).unwrap();
|
||||
assert!(rgba(&s, 30, 5)[0] < 0.2, "{mode}/{depth}: {:?}", rgba(&s, 30, 5));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user