You are on page 1of 2

http://www.math4childrenplus.

com/free/worksheetsnew/kindergarten/shapes/shapes-in-
real-life-worksheet.pdf

https://www.ixl.com/math/kindergarten/fewer-and-more-compare-by-matching

www.dscl.org/kids/nest-activity-resources/

https://www.google.ae/search?
safe=strict&biw=1366&bih=651&tbm=isch&sa=1&ei=ZK4iW6H8J8vsUsrXhbAM&q=worksheets+for
+patterns+kindergarten&oq=worksheets+for+patterns+kindergarten&gs_l=img.3..0i7i30k1
j0i8i7i30k1l6.54540.57213.0.57395.9.9.0.0.0.0.794.794.6-
1.1.0....0...1c.1.64.img..8.1.793....0.wgu2C9_DDug#imgrc=balSogEPBQE6BM:

nkjjhhghgfssssmn,vhnnnbnhgggggfffdfdhhhhhhhhhh9jjjhjhjbvx855
hjjhjdfhjgjh
https://www.educannhjtivvvonbvc.com/worksheets/pattern/?page=2
dfsmnbmkkk
class Image {vfgff
nb
PImage img;
mjn
Image() {
img = new PImage();
img = loadImage("test.jpg");
if (img==null)
println ("failed");
}
}

// And here is the main file:

Image img;

void setup() {
img = new Image();
}

void draw() {
image(img.img, 0, 0);
}

// your own image class


class MyImage {

PImage img; // the image to display


int counter; // the counter

// constructor : setting the image being passed


MyImage(PImage img) {
this.img = img;
}

}
PImage city; // background image
MyImage[] c; // more background images stored in an array

void setup() {

size(600, 400);
city = loadImage("city.jpg");

// set up the array


c = new MyImage[4];

// load each image into the array (c0.jpg, c1.jpg, c2.jpg, c3.jpg)
for (int i = 0; i < 4; i++) {
c[i] = new MyImage(loadImage("c" + i + ".jpg"));
}

void draw() {

background(city);

// for each image in the array


for (int i = 0; i < 4; i++) {
// if its counter is positive, display it on screen
if (c[i].counter > 0) {
background(c[i].img);
}
// decrease the counter if above zero
if (c[i].counter > 0) c[i].counter--;
}
}

void keyPressed() {
// choose a random image
int i = int(random(4));
// set up the counter to 20 frames
// which means the image will be displayed 20 frames
// and will disappear
c[i].counter = 20;
}

Well you can find the mouse position with mouseX and mouseY, so you can check in
your code where the mouse is when it's been clicked, and then either take action or
not depending, e.g.

Code:
void mousePressed()
{
if(mouseX >40 && mouseX<80 && mouseY>40 && mouseY<100)
{
//do something.
}
}

You might also like