What that means is that while it looks like the circle is static, it's actually being redrawn constantly. The setup function is called once when the application first runs, while draw is called constantly every frame (at least 24 times per second). In the above code (to be more precise, a screenshot from the aforementioned P5 editor) you can see two functions, setup and draw. She went over some of the basic functions, such as setting the canvas and background, and drawing shapes. Whats great about this editor is you can do all of your coding online and see the results of your code side by side. After showing us an example of what we were going to make, Leandra dived right into the online P5 editor. That being said, it’s still nice to have someone walk through every step with you. Since P5.js has taken off there is tons of code online that people are sharing, making it a lot easier to learn. ![]() Naturally people wanted to be able to show their generative art online, so it didn’t take long for there to be a huge demand for Processing that worked with Javascript instead of Python. Processing was developed my MIT and is built on top of Python. P5.js is basically a version of Processing that is ported to Javascript. Originally branded as a creative coding language for artists, Processing is mainly used to create generative art, visualizations, and immersive installations. Here is the landing page for the event schedule.Īlthough I have used Processing years ago when I was in college, I knew I was very rusty which is why I decided to tune into Leandra T’s P5.js tutorial stream. Hopefully Spac圜loud will have another live stream in the future so I can catch up on what I missed. I’m going to review what was taught in the live session. ![]() In this post I hope to translate the P5.js tutorial for beginners into a written format, for posterity and to share what I learned. However for this post I want to focus on the first session which was a P5.js tutorial. There were additional sessions involving Hydra, Raspberry Pi, Haskell, and more. ![]() They were streamed live on the Spac圜loud Twitch channel. I had the immense pleasure of attending several creative coding workshops on April 4th.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |