Update app.py
Browse files
app.py
CHANGED
@@ -336,8 +336,8 @@ html_code = f"""
|
|
336 |
const ctx = canvas.getContext('2d');
|
337 |
for (let x = 0; x < 256; x++) {{
|
338 |
for (let y = 0; y < 256; y++) {{
|
339 |
-
const
|
340 |
-
ctx.fillStyle =
|
341 |
ctx.fillRect(x, y, 1, 1);
|
342 |
}}
|
343 |
}}
|
|
|
336 |
const ctx = canvas.getContext('2d');
|
337 |
for (let x = 0; x < 256; x++) {{
|
338 |
for (let y = 0; y < 256; y++) {{
|
339 |
+
const grayValue = Math.random() * 255; // Renamed 'value' to 'grayValue' for clarity
|
340 |
+
ctx.fillStyle = 'rgb(' + grayValue + ',' + grayValue + ',' + grayValue + ')';
|
341 |
ctx.fillRect(x, y, 1, 1);
|
342 |
}}
|
343 |
}}
|