We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 757d72b + f368e5c commit 0727160Copy full SHA for 0727160
Tutorials/pixels/index.html
@@ -355,7 +355,7 @@ <h3>Our second image filter, making our own "tint"</h3>
355
b = blue(img.pixels[loc])
356
357
# Change brightness according to the mouse here
358
- adjustBrightness = ((float) mouseX / width) * 8.0
+ adjustBrightness = (float(mouseX) / width) * 8.0
359
r *= adjustBrightness
360
g *= adjustBrightness
361
b *= adjustBrightness
0 commit comments