Concept:
I always see people talk about how everyone and everything are connected one way or another, and I find that to be very true. I always find weird connections that bring me and others together, and in my classes, they seem to overlap more often than not, which is a good thing! In all honesty, at first I was going to attempt an artwork that incorporated the spiderman suit pattern somehow, but I found myself overcomplicating it and confusing myself, so I went with this idea instead. A web of connections, and every time you press, more connections happen, like how the more you interact with people or things, the more connections you ge,t whether to others or a bigger scope of understanding.
Part I am proud of:
//draw nodes and connections function drawWeb() { background(0); //draw connections //the further apart the nodes are //the fainter the lines for (let i = 0; i < nodes.length; i++) { for (let j = i + 1; j < nodes.length; j++) { let d = dist(nodes[i].x, nodes[i].y, nodes[j].x, nodes[j].y); if (d < connectionDistance) { let alpha = map(d, 0, connectionDistance, 255, 50); stroke(255, alpha); line(nodes[i].x, nodes[i].y, nodes[j].x, nodes[j].y); } } } //draw all nodes for (let node of nodes) { node.show(); } }
I used the help of ChatGPT to help me with the thought process, but essentially, I wanted to make the closer connections look bolder and the further ones more faint. I hadn’t used alpha previously; I always rely on manually choosing the color instead, so this was a hands-on way for me to learn.
//when mouse is pressed //add more nodes and draw connections function mousePressed() { // add 5 new nodes at random for (let i = 0; i < 5; i++) { nodes.push(new Node(random(width), random(height))); } drawWeb(); //redraw everything including new nodes }
I also chose to redraw every time new nodes and connections are made because otherwise, we could see a lot of overlap, and the work would lose some of its visual appeal.
The Art Piece:
Reflection:
To reflect, I want to talk about a struggle I faced that is not related to the final product or my code, but rather that I found myself getting overwhelmed because I had so many ideas, yet neither the time nor the skill to create them yet and so I decided to kind of take a step back and take a more simplistic route. Simple can sometimes be better, and I feel like, in hindsight, the work I created is a pretty solid representation of how my brain feels at times with creative projects like these.