O
O
OWIII2019-06-30 16:05:11
JavaScript
OWIII, 2019-06-30 16:05:11

Canvas changes not working, page freezes?

Tell me, please, already several people are trying to solve the problem, no one can.
There is a project, uploaded to github
. At the moment I am writing a function to change the image -> red color filter.
When you click on the "red" checkbox, the page freezes terribly, chrome starts to crash, but does not give any errors.
The image is in the same folder with the project.
What is it connected with? How to make everything work properly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-06-30
@OWIII

You have a cool condition in the loop: 1 < imageData.data.length. Maybe not after all 1, right i?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question