We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
char index is invalid.
https://editor.p5js.org/codingtrain/sketches/KTVfEcpWx https://github.com/CodingTrain/Coding-Challenges/blob/main/166_Ascii_Image/ascii-video/sketch.js#L36
avg range is 0 <= avg <= 255 if avg is 255 map result equal 1.0 charIndex greater or equal density.length (array out of index).
0 <= avg <= 255
density.length
const len = density.length; - const charIndex = floor(map(avg, 0, 255, 0, len)); + const charIndex = floor(map(avg, 0, 256, 0, len));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
char index is invalid.
https://editor.p5js.org/codingtrain/sketches/KTVfEcpWx
https://github.com/CodingTrain/Coding-Challenges/blob/main/166_Ascii_Image/ascii-video/sketch.js#L36
avg range is
0 <= avg <= 255
if avg is 255 map result equal 1.0 charIndex greater or equal
density.length
(array out of index).The text was updated successfully, but these errors were encountered: