adding an edge case

This commit is contained in:
mlokr 2024-05-13 15:27:09 +02:00
parent c14e6c352d
commit d90f386bd2

View file

@ -34,6 +34,10 @@ main := fn(): int {
return 0;
}
if *(&pixel.point.y - 1) != 0 {
return 64;
}
return pixel.point.x + pixel.point.y + pixel.color.r
+ pixel.color.g + pixel.color.b + pixel.color.a;
}