Week12: Final Project

For my final project of this class, I worked on the first idea in my proposal. This is an image drawing system with lines based on genetic algorithm. Although the initial idea was building a system that draws a user’s portrait in real time, I changed my mind to make this system only with a […]

Week10: Final Project Idea

Although I haven’t decided which project I’m gonna work on, I have several ideas for my final of the Nature of Code class. Since the AI algorithms such as genetic algorithm and neural network system that I recently learnt in this class are so intriguing, all the ideas are inspired by them. Followings are the […]

Week09: Neural Network

Colour predictor. Powerd by Daniel Shiffman’s Toy-Neural-Network library. Inspired by Jabril’s SEFD Science. I actually tried to deal with more interesting subjects such as a facial expression predictor, but soon realized that one of the biggest problems to do those things is collecting the training data set. So I just made a simple colour predictor system. This […]

Week08: Genetic Algorithm

Although there are different sketches using a genetic algorithm, I wanted to make an interactive one rather than the ones that only give you a fixed result or the ones that only allow users(?) watch what they are doing. Therefore, the most interesting one for me among the genetic algorithm examples was Interactive Selection. In this […]

Week06: Midterm Project

  I developed my previous assignment for my midterm project. This time, I made particles consist more complicated form – human face – and applied the same repeller and recovering force. I downloaded the following picture from the internet, modified it to a greyscale image and used it for making the particle system. The code […]

Week03: Oscillation

I referred to Dan’s Code Challenge video and Wiki page about Mathematical Rose Patterns for this assignment. Especially referred the following image. In the above image, you can see some regular patterns as the values of d and n are increasing or decreasing. I chose three types of them, which are the series of patterns […]

Week02: Vector/Force

I simulated elastic forces and drag forces in this assignment. Two formulas were used for this simulation: Fe = k*d (Fe: elastic force, k: elastic coefficient, d: stretched distance from the center) Fd = 1/2 * v^2 * Cd * A (Fd: drag force, v: velocity, Cd: frictional coefficient) The sketch works as below: There are  […]

Week 01: Random Walk

I altered the given random walk algorithm into two versions. First, I just simply gave colour variation depending on the point’s location on the canvas. (More specifically, the R and B values of RGB vary)  The code of this sketch is available here Next, I made cat tracks in snowfield using this algorithm. I had it […]