In this coding challenge, I attempt to implement the Floyd-Steinberg Dithering algorithm and create a "image stippling" effect on an image (kitten, of course) using Processing. Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #89: ...
🎥 Next video: • Coding Challenge #91: ...
🎥 All videos: • Coding Challenges
References:
📓 DHALF.txt: github.com/SixLabors/ImageSha...
📚 Processing Tutorial on 2D Arrays: processing.org/tutorials/2dar...
🔗 Dither on Wikipedia: en.wikipedia.org/wiki/Dither
🔗 Floyd-Steinberg dithering on Wikipedia: en.wikipedia.org/wiki/Floyd%E...
Videos:
🚂 My Tutorial on Pixels in Processing: • 10.4: Pixels! (The Pix...
🚂 My Video on 2D Arrays: • 9.15: 2D Arrays in Jav...
🔴 Coding Train Live 114: • Coding Train Live 114:...
Related Coding Challenges:
🚂 #50 Circle Packing: • Coding Challenge #50.1...
🚂 #85 The Game of Life: • Coding Challenge #85: ...
🚂 #107 Sandpiles: • Coding Challenge #107:...
Timestamps:
0:00 Introducing today's topic
1:20 Let's start coding!
2:44 An image is a grid of pixels
3:25 Quantizing an image to reduce the number of possible colors
6:24 Pull the red, green, and blue values of the pixel
7:11 Quantize the r, g, b values
8:21 Add loadPixels() and updatePixels()
9:11 Filter the image to make it greyscale
11:01 Add more color possibilities
13:01 Quantization of the error
16:01 Funnel the error
17:10 Write an index function
21:08 Update r, g, b values
24:13 Deal with the edges
26:55 Conclusion and suggstions for variations
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#dithering #stippling #floydsteinbergdithering #processing
10 июл 2024