awacke1 commited on
Commit
cbd7594
Β·
verified Β·
1 Parent(s): ec2be1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 value = Math.random() * 255;
340
- ctx.fillStyle = `rgb(${value},${value},${value})`;
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
  }}