Converting Image into A Pencil Sketch in Scratch step by step: 1. Grayscale the image 2. Invert it 3. Blur the inverted image 4. Dodge blend the blurred and grayscale image. Final result = gray scale * 255 / (255-inverted image blur) if inverted image blur = 255, set final result = 255. if final result > 255, set final result = 255. For algorithm and concept behind, please refer to the project reference below.
Project Reference: https://www.freecodecamp.org/news/sketchify-turn-any-image-into-a-pencil-sketch-with-10-lines-of-code-cf67fa4f68ce/ Image scanning: https://scratch-image-scanner.slmj.repl.co/ from project by MonkeyBean2 : https://scratch.mit.edu/projects/631798903/ Thank you MonkeyBean2.