Skip to content

Commit 0727160

Browse files
authored
Merge pull request #166 from FeXd/images-and-pixels
pixels tutorial: fix float cast sytax error
2 parents 757d72b + f368e5c commit 0727160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)