@TheCodingTrain
  @TheCodingTrain
The Coding Train | Coding Challenge 183: Paper Marbling Algorithm @TheCodingTrain | Uploaded 5 months ago | Updated 9 minutes ago
All aboard as I attempt to simulate the artistic process of paper marbling. The algorithm is based on the paper 'Mathematical Marbling' by S. Lu, A. Jaffer, X. Jin, H. Zhao, and X. Mao. The code is written in JavaScript using the p5.js library. Code: thecodingtrain.com/challenges/183-mathematical-marbling

πŸš€ Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-coding-challenge-183-paper-marbling-simulation

p5.js Web Editor Sketches:
πŸ•ΉοΈ Mathematical Marbling: editor.p5js.org/codingtrain/sketches/fsw-rJrpr
πŸ•ΉοΈ Dodecahedron: editor.p5js.org/codingtrain/sketches/frIcGeI8l
πŸ•ΉοΈ Marbling Phyllotaxis: editor.p5js.org/codingtrain/sketches/xoK1M7K3-
πŸ•ΉοΈ Marbling Mouse: editor.p5js.org/codingtrain/sketches/GlQ8BqbZ2
πŸ•ΉοΈ Marbling Color: editor.p5js.org/codingtrain/sketches/ONPlawNRq
πŸ•ΉοΈ Marbling Combs: editor.p5js.org/codingtrain/sketches/kUPncgjvO
πŸ•ΉοΈ Marbling Raster Pixels: editor.p5js.org/codingtrain/sketches/5b29Taght
πŸ•ΉοΈ Marbling Raster Pixels - Image: editor.p5js.org/codingtrain/sketches/nb5hSYsgX
πŸ•ΉοΈ Marbling Raster Pixels - Video: editor.p5js.org/codingtrain/sketches/kVyT302xf
πŸ•ΉοΈ Marbling Color - animate ink: editor.p5js.org/codingtrain/sketches/HtEtm1vii
πŸ•ΉοΈ handPose Marbling: editor.p5js.org/codingtrain/sketches/EwQhSqGK5

πŸŽ₯ Previous: youtu.be/6UlGLB_jiCs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ”— Paper Marbling: en.wikipedia.org/wiki/Paper_marbling
πŸ”— Tokutaro Yagi: suminagashi.com/meet-the-artisan-tokutaro-yagi
πŸ”— Digital Marbling: blog.amandaghassaei.com/2022/10/25/digital-marbling
πŸ“„ Mathematical Marbling: doi.org/10.1109/MCG.2011.51
πŸ”— Mathematical Marbling: https://people.csail.mit.edu/jaffer/Marbling/

Videos:
πŸŽ₯ The Hydrodynamics of Marbling Art: gfm.aps.org/meetings/dfd-2023/649b3ad8199e4c137897831b
πŸŽ₯ youtu.be/O5wjXoFrau4

Related Coding Challenges:
πŸš‚ youtu.be/OAcXnzRNiCY
πŸš‚ youtu.be/BZUdGqeOD0w
πŸš‚ youtu.be/alhpH6ECFvQ
πŸš‚ youtu.be/IxdGyqhppis

Timestamps:
0:00 Introduction
1:47 Mathematical Marbling
2:16 Explain approach
3:20 Start Coding
4:20 Dropping paint
7:03 Add the circle vertices using polar coordinates
10:57 Add a marble function
13:24 Refine the algorithm
16:45 Add a tine function
19:46 Circle detail
24:50 Generalize the tine function
29:43 Possible variations
31:45 Outro

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new

#mathematicalmarbling #fluidsimulation #p5js #javascript
Coding Challenge 183: Paper Marbling Algorithm4.4: Particle Systems with Image Textures - The Nature of CodeCoding Trade Live:  Side Project Saturday! (Live from the Attic)ml5.js: Image ClassificationSide Project Saturday!Coding Challenge 171: Wave Function Collapse11.4: Brightness Mirror - p5.js TutorialCoding Challenge 178: Climate Spiral5.7 Path Following (Steering) - Nature of CodeStickers!4.1: Particle System Simulation - The Nature of CodeCoding Train 2022 in Review, Plans for 2023

Coding Challenge 183: Paper Marbling Algorithm @TheCodingTrain

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER