Sections of Mathematics to learn for creative coding

Dear passengers,

Can you describe me, please, what section of math (like a trigonometry or discrete math or w.e.) I need to learn for good and deep understanding of art of coding on oF?

It’s not a problem to learn a syntax for me. But, I’m really need a math workouts in a context of Creative Coding.

Some books, videos?
Thank you!

1 Like

Khan academy has a good math section. I would probably start from trigonometry and then vectors and matrices.

It is probably more fun to start trigonometry and vectors from Daniel Shiffman’s tutorial, https://natureofcode.com/book/chapter-1-vectors/ and https://natureofcode.com/book/chapter-3-oscillation/. The code example are in processing but you can find the OF equivalent on github.

1 Like

In typical order of learning, I would tend to suggest: algebra, geometry, trigonometry, vectors, matrices, fractals.

You only need to get algebra and some geometry to understand lots of useful things for making artistic graphical programs.

And you don’t even need that to play with OpenFrameworks and do artistic things… which may tend to give you the motivation to learn more math so you understand better how to do more artistic things.

Physics (mechanics) can also be useful.

Though you can also use libraries written by other people who had more math knowledge.

OpenFrameworks is wonderful in that it provides easy functions that can be used to quickly do a lot of visual things with very little need to know about how it’s done.

Hi,
additionally the ofBook is a good learning source and has a chapter that deals with maths, it might be useful for you.
Cheers

1 Like

I assume that you have basic high school algebra and geometry under your belt.
The next step would be linear algebra, especially matrices and vectors. I’ve written a series of blog posts on linear algebra basics. If you understand everything presented there you have a very solid foundation in linear algebra.
That’s the minimum math I’d say you need for creative coding.
Formal logic should also be on your radar. AI and machine learning are making inroads into computational art creation. If you are interested in AI, it might be a good idea to learn calculus and statistics as well.

1 Like

This is a great interactive/visual textbook on linear algebra, chapters 1-4 and 6 are good for 2d/3d graphics http://immersivemath.com/ila/index.html

Although it’s not Openframeworks, Dan Shiffman’s Nature Of Code series is great! https://www.youtube.com/watch?v=bKEaK7WNLzM&list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM&index=10

I not only learnt creative coding from him, but also math!