Coding Challenge 183: Paper Marbling Algorithm
YouTube Viewers YouTube Viewers
1.68M subscribers
57,286 views
0

 Published On May 2, 2024

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: https://thecodingtrain.com/challenges...

šŸš€ Watch this video ad-free on Nebula https://nebula.tv/videos/codingtrain-...

p5.js Web Editor Sketches:
šŸ•¹ļø Mathematical Marbling: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Dodecahedron: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Phyllotaxis: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Mouse: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Color: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Combs: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Raster Pixels: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Raster Pixels - Image: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Raster Pixels - Video: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Marbling Color - animate ink: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø handPose Marbling: https://editor.p5js.org/codingtrain/s...

šŸŽ„ Previous: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ 182:Ā ApollonianĀ Gask...Ā Ā 
šŸŽ„ All: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 

References:
šŸ”— Paper Marbling: https://en.wikipedia.org/wiki/Paper_m...
šŸ”— Tokutaro Yagi: https://suminagashi.com/meet-the-arti...
šŸ”— Digital Marbling: https://blog.amandaghassaei.com/2022/...
šŸ“„ Mathematical Marbling: https://doi.org/10.1109/MCG.2011.51
šŸ”— Mathematical Marbling: https://people.csail.mit.edu/jaffer/M...

Videos:
šŸŽ„ The Hydrodynamics of Marbling Art: https://gfm.aps.org/meetings/dfd-2023...
šŸŽ„ Ā Ā Ā ā€¢Ā 3.4Ā PolarĀ CoordinatesĀ -Ā TheĀ NatureĀ of...Ā Ā 

Related Coding Challenges:
šŸš‚ Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #56:Ā AttractionĀ andĀ ...Ā Ā 
šŸš‚ Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ 102:Ā 2DĀ WaterĀ RippleĀ Ā 
šŸš‚ Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #132:Ā FluidĀ SimulationĀ Ā 
šŸš‚ Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ 177:Ā SoftĀ BodyĀ PhysicsĀ Ā 

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: https://thecodingtrain.com/
šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/pas...
šŸš© Suggest Topics: https://github.com/CodingTrain/Sugges...
šŸ’” GitHub: https://github.com/CodingTrain
šŸ’¬ Discord: https://thecodingtrain.com/discord
šŸ’– Membership: http://youtube.com/thecodingtrain/join
šŸ›’ Store: https://standard.tv/codingtrain
šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā 
šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā 

šŸŽ„ Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 
šŸŽ„ Ā Ā Ā ā€¢Ā StartĀ learningĀ here!Ā Ā 

šŸ”— p5.js: https://p5js.org
šŸ”— p5.js Web Editor: https://editor.p5js.org/
šŸ”— Processing: https://processing.org

šŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-o...

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

#mathematicalmarbling #fluidsimulation #p5js #javascript

show more

Share/Embed