Rediscover the joy of codingwith Creative Coding26 Sep, 2023 We Are JavaScripters! @42nd@kkeeth @kuwahara_jsri @kkeeth
View Slide
Who am I
Introductory Remark 💁This slide is written in English.However, I’m still learning English,and there may be some inappropriate expressions.So, please give me MASAKARI for my expressions 👍
Let’s start 😆
About a year ago
🤔Is there anything that combinesprogramming, mathematics and art ?
✕ MathematicsJavaScript Art works
✕ MathematicsJavaScript Art worksCreative Coding, Generative Art
I tryed it !!
URL: https://p5js.org/
URL: https://p5js.org/👉
Processingp5.jsProgramming Language Java / (JavaScript) JavaScriptOperating Environment mainly PC Web BrowserPerformance Normal little slow
URL: https://editor.p5js.org/
setupThis function is called once.It's used to define initialenvironment properties.drawCalled directly after setup,continuously executes the linesof code contained inside itsblock until the program isstopped.
drawCalled directly after setup,continuously executes the linesof code contained inside itsblock until the program isstopped.setupThis function is called once.It's used to define initialenvironment properties.
https://github.com/processing/p5.js/blob/v1.7.0/src/core/main.js#L418
✕JavaScript MathematicsDon’t worry 😆ɾBasic trigonometric functionsɾPolar coordinate systemɾVector Concepts
Polar Coordinate System
Vector Concepts
Sample & Code
https://zenn.dev/kkeeth/articles/rose-curve-variations
r = sin(θnd)
core code 👉only 7 lines!!
🤩 What fun !!
Image By: https://openprocessing.org/user/299354?o=13&view=sketches
Have fun with p5.js 😆
ReferencesP5.js Tutorial | Create a generative art using image data• https://youtu.be/me04ZrTJqWAp5.js Get Started• https://p5js.org/get-started/δΣωϥςΟϒɾΞʔτɹProcessingʹΑΔ࣮ફΨΠυ• https://www.amazon.co.jp/dp/4861009634Pinterst Search(generativeart)• https://onl.tw/2bhH4ZDOpenprocessing• https://openprocessing.org/user/299354?o=13&view=sketches