Simon turned 8!

For his 8th birthday, Simon made a present for himself in Node.js and spoke about his new year’s resolutions that mainly involve live streaming:

Today, two days later, we actually managed to test stream! Both of us had no idea how live streams work and thought we would have to install expensive encoders to enable streaming. It turned out to be much easier than we expected, although it took us a couple of hours (and tears on Simon’s behalf) to figure it out. So there will be live streams coming shortly! By the way, if you haven’t done so yet, please subscribe to Simon’s YouTube channel (well it’s actually my channel, but it’s about Simon). When he has over 100 subscribers, he can stream from mobile devices which would be handy.

DSC_1186 - kopie

DSC_1218 - kopie

DSC_1235 - kopie

DSC_1243 - kopie

Simon says he had a bad birthday this year, but here were a few things he did like and above all, a new Murderous Math book, “Shapes and Sizes” (he is holding it on the photo above).

Time to change the tags to “8 year old programmer”!

At Het Pass in Mons (Bergen)

Simon is not really into museums. He prefers to learn things at his own pace and dislikes crowds. The pictures below are from our visit to Het Pass, a science museum in Wallonia, near the French border. The museum is situated in what formerly were mining facilities, the exhibits are interactive, spread out in several oddly shaped buildings connected by industrial bridges and escalators. I believe Simon actually enjoyed the electricity and the genetics rooms, even though the two of us got struck by the electricity from the plasma ball  (painful!):

DSC_1089

DSC_1090

DSC_1098

DSC_1102

DSC_1111

Flocking System Painting with Pixels

Flocking painting Live Video 8 Aug 2017

This is one Simon’s most beautiful projects recently! Simon saw the idea to link the webcam image to the boids of a flocking system in a video by Daniel Shiffman, but the code featured in this project Simon wrote himself. The Flocking code is based on Daniel Shiffman’s example from his book The Nature of Code. (Flocking is a steering behavior that consists of separation, alignment and cohesion – which are also steering behaviors – combined).

Simon’s sis also posed for the camera:

Flocking painting Live Video 8 Aug 2017 2

Simon is also about to make a JavaScript version of this fun project, because JavaScript allows to host it easily online, so that everyone can play with it. With JavaScript, he may even be able to write it in an online editor, so there won’t even be a need to host it. Check in later for an update to this post!

UPDATE: Simon encountered a problem trying to translate his Flocking System Painting with Pixels into JavaScript: P5 runs much slower than Processing after Simon added steering behavior. He doesn’t know how to solve this. Simon’s JavaScript code is online at https://codepen.io/simontiger/pen/ZJKBbN?editors=0011

Sound Wave Maths in Processing

Simon has created animations visualizing sound waves (Triangle, Sawtooth, Square and Sine waves) in Processing (Java), using wave functions.

These are the functions he used for the Sawtooth, Square and Sine waves:

DSC_1131

DSC_1132

Not to confuse “sine” with “sgn” (sgn standing for sign):

DSC_1134

He was inspired by the logarithmic and power functions that he was studying during his math class yesterday. Simon was trying to draw both types of functions in Grapher on his laptop, but only succeeded for the power functions (because there were no subscript option for the logarithms).

Circle Intersection with Perlin Noise in Processing (Interactive)

Simon built a beautiful interactive circle intersection program in Processing, in which the circles detect intersection and change colors (according to Perlin Noise) once it occurs. The player can control the number of circles by adding and removing them in two modes (mouth clicked and mouth dragged). Simon added a button to switch between the two modes. (Loosely based upon Daniel Shiffman’s tutorials on checking object intersection).