Skip to content

Commit f368e5c

Browse files
committed
pixels tutorial: fix float cast sytax error
* requested by #165
1 parent 757d72b commit f368e5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tutorials/pixels/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ <h3>Our second image filter, making our own "tint"</h3>
355355
b = blue(img.pixels[loc])
356356

357357
# Change brightness according to the mouse here
358-
adjustBrightness = ((float) mouseX / width) * 8.0
358+
adjustBrightness = (float(mouseX) / width) * 8.0
359359
r *= adjustBrightness
360360
g *= adjustBrightness
361361
b *= adjustBrightness

0 commit comments

Comments
 (0)