Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit d125832

Browse files
Update README.md
1 parent 21ac8e4 commit d125832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
let x = index % width;
2020
let red = x % 255;
2121
let green = y % 255;
22-
let blue = (x * y) % 255;
22+
let blue = (255 - (red + green).min(255)) % 255;
2323

2424
buffer[index as usize] = blue | (green << 8) | (red << 16);
2525
}

0 commit comments

Comments
 (0)