Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
function setup() {
createCanvas(500, 500);
background("#C1E3FA");
pig();
}
/* Don't edit or delete this function!!! You'll need to use it as a reference to figure out how to position each part of the pig's face. */
function pig() {
// Face
fill("#FFCFEB");
stroke("#AB4E70");
ellipse(250, 250, 100, 100);
// Left Ear
triangle(230, 205, 200, 200, 190, 240);
// Right Ear
triangle(270, 205, 300, 200, 310, 240);
// Left Eye
stroke("black");
fill("white");
ellipse(230, 240, 30, 30);
// Right Eye
ellipse(270, 240, 30, 30);
// Left Pupil
fill("black");
ellipse(235, 245, 15, 15);
// Right Pupil
ellipse(265, 245, 15, 15);
// Nose
stroke("#AB4E70");
fill("#DE98B9");
ellipse(250, 270, 50, 40);
// Nostrils
fill("#AB4E70");
ellipse(242, 270, 5, 15);
ellipse(258, 270, 5, 15);
}
/* Fill in this function so that it draws a pig that looks EXACTLY like the one on the canvas-- but center it at (mouseX, mouseY) instead of (250, 250). */
function mouseClicked() {
//face
fill("#FFCFEB");
stroke("#AB4E70");
ellipse(mouseX, mouseY, 100, 100);
// Left Eye
stroke("black");
fill("white");
ellipse(mouseX -= 20, mouseY -= 10, 30, 30);
// Right Eye
ellipse(mouseX += 40, mouseY, 30, 30);
// Left Pupil
fill("black");
ellipse(mouseX -= 35, mouseY += 5, 15, 15);
// Right Pupil
fill("black");
ellipse(mouseX += 30, mouseY, 15, 15);
// Nose
stroke("#AB4E70");
fill("#DE98B9");
ellipse(mouseX -= 15, mouseY += 25, 50, 40);
// Nostrils
fill("#AB4E70");
ellipse(mouseX -= 8, mouseY, 5, 15);
ellipse(mouseX += 16, mouseY, 5, 15);
// Left Ear
fill("#FFCFEB");
triangle(mouseX -= 30, mouseY -= 65, mouseX -= 30, mouseY -= 5, mouseX -= 10, mouseY += 40);
// Right Ear
fill("#FFCFEB");
triangle(mouseX += 85, mouseY -= 35, mouseX += 35, mouseY += 35, mouseX -= 5, mouseY -= 40);
}
![]() |
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team