Hello world

I’ve re-written my first little d.v to properly split up the text file into arrays that I can actually use. Once I got that out of the way I was able to print the name and gender of artists by using a number between 1 and 15995. This screenshot shows some text displaying on screen. A bit of a breakthrough for me I will admit.

Next step was to recreate my initial attempt using this new code. Previously I just looped through the text file and added a 1 to the diameter every time a match was made. I knew that this wasn’t a great way to do it, and when I tried anyway it didn’t work because it didn’t like the string being matched with a character. Luckily Mitchell was able to point me towards the .equals function which worked a treat. Now it loops through the file and every time there is a match it adds 1 to variable number, these numbers are displayed on the left of the screen (in order: male, female, company, other). This number is huge and we can’t represent it exactly in pixel size, so I’ve divided it by 20 before drawing the circles.

We can see that there are substantially more males than any other artists. But then it gets a little murky… which lines represent which genders? And I still want some interactivity.

Leave a Reply