Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
// at the start of the program
var fishX
var fishY
var fishW
var fishZ
var bubbleX
var bubbleY
var fish2r
var fish2g
var puffersize
var puffermaxsize
var pufferminsize
var puffermod
function setup() {
fishX = 50
fishY = 25
fishZ = 70
fishW = 310
bubbleX = 100
bubbleY = 55
fish2r = 30
fish2g = 150
puffersize = 20
puffermaxsize = 100 //maximum size
pufferminsize = 60 //minimum size
puffermod = 1 //speed of change
createCanvas(400, 400)
background('dodgerblue')
}
function draw()
ellipse(fishX, fishY, 80, 50)
rect(100, 100, 50, 80)
stroke('black')
fill('white');
ellipse(fishX - 20, fishY - 5, 15, 15);
fill('black');
ellipse(fishX - 20, fishY - 5, 5, 5);
fill('white')
ellipse(bubbleX - 20, bubbleY - 5, 15, 15);
noStroke();
fill(fish2r, fish2g, 0);
fish2r = fish2r + 2
fish2g = fish2g - 1
ellipse(fishX, fishY, 80, 50)
triangle(fishX, fishY, fishX + 50, fishY + 20, fishX + 50, fishY - 20)
fishX = fishX - 5;
if (fishX < 0) {
fishX = 400
bubbleY = bubbleY - 4
if (bubbleY < 0) {
bubbleY = fishY
bubbleX = fishX
bubbleY = bubbleY + random(-1, 1);
}
{
// puffersize = puffersize + puffermod
// if (puffersize > puffermaxsize)
// include a statemnt that checks if the sixe is too big, and changes
//puffermod to a negative number to shrink the puffer fish
// if (puffersize > pufferminsize)
//include an if statement that checks if the size is too small
//and then makes the fish grow
//fishW = fishW - 7;
//if (fishW < 0) {
//fishW = 300
//}
//
//noStroke();
//fill(fish2r, fish2g, 0);
//fish2r = fish2r + 2
//fish2g = fish2g - 1
//ellipse(fishX, fishY, 80, 50)
//triangle(fishX, fishY, fishX + 50, fishY + 20, fishX + 50, fishY - 20)
// ellipse(200,300, puffersize, puffersize)
//fill('red')
//ellipse(fishw, fishz, 81, 51)
// triangle(fishw, fishz, fishw + 51, fishz + 21, fishw + 51, fishz - 21)
// fill('white');
// ellipse(fishw - 21, fishz - 6, 16, 16);
// fill('black');
// ellipse(fishw - 21, fishz - 6, 6, 6);
// fill('white')
// ellipse(bubble - 21, bubblez - 6, 16, 16);
//bubbleY = bubbleY - 4
// if (bubbleY < 0) {
// bubbleY = fishY
// bubbleX = fishX
// bubbleY = bubbleY + random(-1, 1);
//bubbleW = bubbleZ - 4
//if (bubbleZ < 0) {
//bubbleZ = fishZ
//bubbleW = fishW
//bubbleZ = bubbleZ + random(-2, 2);
![]() |
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