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). ```diff const len = density.length; - const charIndex = floor(map(avg, 0, 255, 0, len)); + const charIndex = floor(map(avg, 0, 256, 0, len)); ``` <img width="699" alt="Screenshot 2023-05-15 at 21 43 15" src="https://github.com/CodingTrain/Coding-Challenges/assets/2284908/5f336fd1-5177-46f3-a392-43a1de4a81bf">