Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rediscover the joy of coding with Creative Coding
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
kkeeth
September 26, 2023
Programming
2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rediscover the joy of coding with Creative Coding
kkeeth
September 26, 2023
More Decks by kkeeth
See All by kkeeth
Programming to play with p5.js
clown0082
0
100
とある EM の初めての育休からの学び
clown0082
1
5.8k
The history of Javascript frameworks: changes in front-end design philosophy
clown0082
2
240
Visually experience the beauty of mathematics with p5.js
clown0082
1
3.3k
全員が意思決定する会社で開発者体験や生産性を見る大変さについて
clown0082
0
670
JavaScript × Mathematics go to Digital Art
clown0082
1
470
In-house study group at YUMEMI
clown0082
0
240
Playing Ionic Logo by p5.js
clown0082
0
360
Skills that employers recommend students to acquire
clown0082
1
320
Other Decks in Programming
See All in Programming
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.8k
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
110
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
500
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
290
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.9k
仕様駆動開発の消費期限
watany
20
8.4k
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
700
Cloudflare is Agents
chimame
0
170
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
500
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
150
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
380
今さら聞けない .NET CLI
htkym
0
190
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
260
GitHub's CSS Performance
jonrohan
1033
470k
Navigating Team Friction
lara
192
16k
How GitHub (no longer) Works
holman
316
150k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
200
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
400
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
530
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
490
Balancing Empowerment & Direction
lara
6
1.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Transcript
Rediscover the joy of coding with Creative Coding 26 Sep,
2023 We Are JavaScripters! @42nd @kkeeth @kuwahara_jsri @kkeeth
Who am I
Who am I
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 combines programming, mathematics and art
?
✕ Mathematics JavaScript Art works
✕ Mathematics JavaScript Art works Creative Coding, Generative Art
I tryed it !!
URL: https://p5js.org/
URL: https://p5js.org/ 👉
Processing p5.js Programming Language Java / (JavaScript) JavaScript Operating Environment
mainly PC Web Browser Performance Normal little slow
URL: https://editor.p5js.org/
setup This function is called once. It's used to define
initial environment properties. draw Called directly after setup, continuously executes the lines of code contained inside its block until the program is stopped.
draw Called directly after setup, continuously executes the lines of
code contained inside its block until the program is stopped. setup This function is called once. It's used to define initial environment properties.
https://github.com/processing/p5.js/blob/v1.7.0/src/core/main.js#L418
✕ JavaScript Mathematics Don’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
None
r = sin(θ n d )
None
core code 👉 only 7 lines!!
None
🤩 What fun !!
None
None
None
None
Image By: https://openprocessing.org/user/299354?o=13&view=sketches
Have fun with p5.js 😆
References P5.js Tutorial | Create a generative art using image
data • https://youtu.be/me04ZrTJqWA p5.js Get Started • https://p5js.org/get-started/ δΣωϥςΟϒɾΞʔτɹProcessingʹΑΔ࣮ફΨΠυ • https://www.amazon.co.jp/dp/4861009634 Pinterst Search(generativeart) • https://onl.tw/2bhH4ZD Openprocessing • https://openprocessing.org/user/299354?o=13&view=sketches
None