Ultra Fast Colour Image Scanner | Scratch How-to Tutorial

476,628
0
Published 2022-05-01
The Fastest Colour Image to List Scanner for Scratch, up to x400 faster than the previous method - You'll be amazed! Image scanning is useful for making textures for use in games, as well as for paint programs, and many other imaginative projects! In this tutorial we walk through how colour scanning in Scratch is achieved, and then look at how we can make it so much better!

My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!

🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.academy/ 👈

😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu/

👀 Previous GET COLOR tutorial -    • How to GET COLOR value at point | Scr...  
🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/31533631/comments
🐱 Blue Line Scanning Filter - scratch.mit.edu/projects/678512904/

👀 Quick and Fun Tutorials -    • Quick and Fun Scratch Tutorials  

❤️ Scratch Addons - scratchaddons.com/
📹 Video Editing Software - techsmith.pxf.io/c/2682566/506622/5161

-------------Video Chapters-------------
0:00 Intro
1:43 Scanning
6:20 Using Pen to Draw an Image from a List
9:49 Colour Caching
11:36 Pixel Accurate Scanning
14:09 The theory of Binary Search for Colour Scanning
17:30 Image Brightness
24:05 The Initial Scan
26:26 Possible Colour Values
30:04 Testing the Initial Scan
31:53 2nd Scan Pass
36:56 3rd Scan Pass
38:58 Correcting Edge Case Scanning Errors
43:31 Scanning with 3, 4 & 5 passes
45:47

All Comments (21)
  • @pi3722
    It is incredible how you have made this, I tried making this but all my attempts failed, you are truly the greatest programmer on scratch
  • @minergangg
    This is incredibly long, the way you explain it is all clear and worth it! Edit: Well... um I didn't expect this to gain likes.
  • You basically applied the binary search algorithm to scratch scanning. Amazing how efficient you made it
  • @harrisonmccomb
    Oh wow, I didn't realize you had a YouTube channel. I used to love your projects when I used Scratch myself in middle school. Now I'm a senior computer science major. Time flies.
  • I love your tutorials. They are different from most tutorials since other people tend to just tell you what to do. You do it differently, you explain why and how it works, and just overall gives the viewer more knowledge that they can use later in other projects.
  • @DawnNadeeka
    I love these tutorials! I'm a computer science student now, but my original interest in programming came from Scratch. The way you explain how things work in these videos is amazing, it's done in a way that even beginner Scratchers can pick up on, but I still find myself learning new and better ways to organize my code from them. I love seeing how much Scratch can really do, and it is a fun challenge for me to try implementing these projects in other languages like Python or Java. Thank you so much, I'm excited to see your future videos!
  • @jubstery
    I've gotten this far on learning from you on raycasting in scratch 3d. I'm trying to learn from this video so i can put my own textures for walls and other objects. An attempt to create seemingly random raycasting maps. I cant get past the 2nd scan. I finished the video. Watched this video several times. I know i can catch my mistake. Im using turbo warp. Stantard settings to mimic scratch to avoid errors uploading. Youre such a great tutor. Its so hard to catch my own mistakes. How you broke down this, is mind boggling smart. Yet so simple kids can understand. Bravo 👏
  • @pixelatedluis
    i didnt even watch this tutorial for the tutorial i watched this to see how cool ultra fast scanning is and how it works. i really like the methods you use like using a giant sprite, sizing it down, then switching to a small one, or maybe turning down the image brightness to make scanning easier.. its all very cool, good job griffpatch!
  • Finally a griffpatch video that is over 40 minutes long! Love you videos; keep up the good work! <3
  • This is so incredible... wait, now we can actually take pictures in scratch, which is something that was practically impossible.
  • Wow. This had my head spinning for a while, but I can't argue with the results. This looks amazing. And it would make for a great jumping off point to make a file compression program such as jpeg or png.
  • @PenguinBoi27
    Let’s be real everyone still on scratch at one point either started or stayed on the site because of this man
  • @buckIin
    This is so amazing, you're truly one of the best scratchers out here. I also tried the blue line project and it's really fun!
  • @aparrot4254
    It's an understatement to say this is revolutionary
  • THANKS for releasing this, it feels like I've been waiting so long. You are the best!
  • @pandat1070
    Wow, this is incredible! I'm pretty sure you said something about applying this to the raycaster tutorial series, I hope you make a video on that. Great work as always, I'm looking forward to what's next!
  • @dkianz
    This is legendary! Love this job, it will open a lot of possibilities!!
  • @NewtonPL
    aww man! now i gotta wait for another raycasting tutorial, this looks so fun! time to hit F5 every few minutes :P amazing work as always, griff!