Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Coding Challenge #55: Mathematical Rose Patterns

Автор: The Coding Train

Загружено: 2017-02-08

Просмотров: 90421

Описание:

In this coding challenge, I attempt to create rose (rhodonea) curves using trigonometry function and polar coordinates. Code: https://thecodingtrain.com/challenges...

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

🎥 Previous video:    • Coding Challenge #54.1: Islamic Star Patterns  
🎥 All videos:    • Coding Challenges  

References:
🏛 Rose Mathematics on Wikipedia: https://en.wikipedia.org/wiki/Rose_(m...)

Live Stream Archives:
🔴 Live Stream #76:    • Live Stream #76: Attractors, Algorithmic R...  

Related Coding Challenges:
🚂 #116 Lissajous Curve Table:    • Coding Challenge #116: Lissajous Curve Table  
🚂 #125 Fourier Series:    • Coding Challenge 125: Fourier Series  
🚂 #133 Times Tables Cardioid Visualization:    • Coding Challenge #133: Times Tables Cardio...  
🚂 #134 Heart Curve:    • Coding Challenge #134.1: Heart Curve  
🚂 #C1 - Coding in the Cabana Maurer Rose:    • Coding the Maurer Rose  

Timestamps:
0:00 Introduction to the Mathematical Rose Patterns Coding Challenge
0:35 Whiteboard discussion of polar coordinates
3:15 Discussion about how to use the r=cos(kθ) formula
3:45 Into the code...draw a circle with polar to cartesian transformation
5:30 Start to draw shapes using the formula
6:46 In a way, we're done! But wait, there's more...
7:35 Re-creating some patterns from the Wikipedia page; using the k=n/d form
8:50 Adding the p5.js DOM library to create some sliders
10:30 Re-factoring the code use the denominator of the k=n/d formula as the number of loops in the draw function
11:30 Done! What else can you do with it?!

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

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • 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...

#algorithmicroses #mathematicsroses #polarcoordinates #trigonometry #p5js #javascript

Coding Challenge #55: Mathematical Rose Patterns

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Coding Challenge #56: Attraction and Repulsion Forces

Coding Challenge #56: Attraction and Repulsion Forces

Coding Challenge #133: Times Tables Cardioid Visualization

Coding Challenge #133: Times Tables Cardioid Visualization

Coding the Maurer Rose

Coding the Maurer Rose

The Ridiculous Engineering Of The World's Most Important Machine

The Ridiculous Engineering Of The World's Most Important Machine

Как выглядит график функции x^a, если a не является целым числом? Необычный взгляд на знакомые фу...

Как выглядит график функции x^a, если a не является целым числом? Необычный взгляд на знакомые фу...

Coding Challenge #136.2: Perlin Noise GIF Loops

Coding Challenge #136.2: Perlin Noise GIF Loops

pushMatrix() popMatrix() Processing Tutorial

pushMatrix() popMatrix() Processing Tutorial

Coding Challenge #127: Brownian Tree Snowflake

Coding Challenge #127: Brownian Tree Snowflake

Старейшая нерешённая математическая задача [Veritasium]

Старейшая нерешённая математическая задача [Veritasium]

Как работала машина

Как работала машина "Энигма"?

Coding Challenge 185: Unfolding Fractals

Coding Challenge 185: Unfolding Fractals

Recreating Vintage Computer Art with Processing

Recreating Vintage Computer Art with Processing

Теорема Пуанкаре-Перельмана простыми словами – математик Алексей Савватеев | Научпоп

Теорема Пуанкаре-Перельмана простыми словами – математик Алексей Савватеев | Научпоп

The Future of Veritasium

The Future of Veritasium

Learn Creative Coding: Paint Brushes & Complex Shapes

Learn Creative Coding: Paint Brushes & Complex Shapes

Что на самом деле означает слово «равный»?

Что на самом деле означает слово «равный»?

Expanding in three dimensions

Expanding in three dimensions

Turning Images into Dots: The Magic of Dithering

Turning Images into Dots: The Magic of Dithering

Coding Challenge #16: L-System Fractal Trees

Coding Challenge #16: L-System Fractal Trees

Ep.2 Processing art tutorial | GRID 02 (Creative coding)

Ep.2 Processing art tutorial | GRID 02 (Creative coding)

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]