Whereas engaged on some demos earlier this 12 months, I began to get actually inquisitive about trigonometry. Having left the topic alone since faculty, I initially began brushing up on my data to resolve a particular drawback. However I used to be quickly drawn in by how a grasp of trigonometry opens up the chances for artistic coding!
If the topic sounds intimidating, this text collection I wrote for Codrops could be for you. In it we stroll by the ideas of trigonometry and a few artistic purposes in CSS and JS. Ranging from the fundamentals, we achieve an understanding of the varied trigonometric capabilities, and transfer by to utilizing them in our CSS code, earlier than graduating to drawing and animating shapes with the Canvas API. I learnt quite a bit whereas writing these articles, and I hope you’ll too. Maths and artistic coding needn’t be intimidating!