xxxxxxxxxx
function setup() {
createCanvas(500, 500);
}
function draw() {
background(189,0,255);
//raindrop copy by mrbombmusic; I used this to understand how to make the raindrop shape and placement
//link: https://editor.p5js.org/mrbombmusic/sketches/ry-NCUcab
fill(100,0,225)
noStroke();
triangle(180,200,200,130,220,200)
ellipse(200,205,40,60)
//my attempt at remaking the raindrop......um smile and wave yall
triangle(200,300,280,100,400,300)
ellipse(300,313,200,100,300)
//Title
textSize(35)
text('Purple Rain', 10, 30);
fill(153, 0, 153);
text('by', 10, 60);
fill(122, 18, 202);
text('Prince & The Revolution', 10, 90);
}
//rationale: So, I got inspired by my Purple Rain poster that hangs from my ceiling and I wanted to make something that looked like falling raindrops because that is what I envision every time I listen to the title song.
//I knew that the primary shapes in the raindrop would be triangles and circles(ellipses) but I did not feel confident I knew how to combine the two.
//In my head that seemed like an easy task to figure out on my own...As you can see, I quickly realized that it was not easy,
//and that I clearly did not learn slope in the sixth grade, because the lower right and left corners did not want me to be great.
//Nonetheless, I still wanted to learn how to combine the shapes to make a raindrop, so I watched a lot of other codes, and found mrbombmusic's code, that showed step by step how he created the triangle and cirle,
//and merged the two together. So I used his model, then I needed to figure out the math to understand how to place each drop on different coordinates on my canvas.
//As you can see, I made...a raindrop and was very confused on how to duplicate the dimensions of mrbombmusic shape on different coordinates and had a very hard time
//finding other coordinates. I tried using the pi degree chart but it was not easier to understand. I played with the numbers in a range from 1-400 and finally was able to come up with the monster raindrop that you see in the middle.
//The color pallete is purple because Prince's aesthetic is purple. Overall, I don't think this looks awful but it's not what I thought it would turn out to be and if anyone has any pointers that is welcomed. Thanks.