Making a character using p5

To improve my understanding in learning to basics, the very fundamentals of programming using p5 libraries, we were tasked with creating basic characters using code, with some experimentation if feeling comfortable or adventurous with coding in JavaScript.

Designing a character

At first I had no idea of what to create, an ideal idea was to make a fox, using ellipses and triangles, but creating a triangle was a bit of a hassle; it required coordinating each point of the triangle, which confused me...
I then drew a character on paper, this was so I had a rough idea of what I was going for in terms of appearance.



Its pretty hard to make-out what it is, but it was meant to resemble a reindeer, a poorly drawn reindeer. I was going to pursue to whole "fox" idea, but I decided to go with something festive, and a reindeer was perfect!

Creating the character!

Creating the reindeer was simple; all I had to do is use several ellipses, lines, and arches. It still took me awhile to figure out how to actually code and manipulate these different shapes, despite creating such a basic design should be.
To finalise my character, I added colour, which REALLY helped the character resemble a reindeer (in my opinion).

The code (the painful part)

The experience was 'alright'...
Figuring out where to begin was they hardest part, I either lost track of what I was doing or was completely lost in the mix of code. Although it was difficult starting, getting into the flow made the process quicker and easier as time went on. To improve, the workflow, I placed notes beside my code or above it, which helped keep track of what blocks of code belonged to a specific shape, or what a line of code did once executed. 
Any mistakes I made during the process was easily fixable; at least 90% of the code was previous lines of code, making things simple to understand, and I could use to built in code inspector in my web-browser.


Comments

Popular posts from this blog

Pure Data: GEM

Purr Data: GEM

The Enduring Ephemeral, or the Future Is a Memory