diff --git a/BasicImages/BasicImages.pde b/BasicImages/BasicImages.pde index 8b13789..8dbf527 100644 --- a/BasicImages/BasicImages.pde +++ b/BasicImages/BasicImages.pde @@ -1 +1,15 @@ +PImage lily; +float scaleFactor = random(.3,.98); + + +void setup() { + size(800,600); + lily = loadImage("water lily.jpg"); +} + +void draw(){ + + image(lily,mouseX,mouseY,.5*lily.width,.5*lily.height); + image(lily,random(width),random(height),scaleFactor*lily.width,scaleFactor*lily.height); +} \ No newline at end of file diff --git a/BasicImages/data/water lily.jpg b/BasicImages/data/water lily.jpg new file mode 100644 index 0000000..ee46e14 Binary files /dev/null and b/BasicImages/data/water lily.jpg differ diff --git a/BlendingImages/BlendingImages.pde b/BlendingImages/BlendingImages.pde index 8b13789..be3bc4b 100644 --- a/BlendingImages/BlendingImages.pde +++ b/BlendingImages/BlendingImages.pde @@ -1 +1,16 @@ +PImage lily; +void setup() { + size(800,800); + lily = loadImage("water lily.jpg"); + image(lily,0,0); + filter(GRAY); + +} + +void draw() { + + + + +} \ No newline at end of file diff --git a/BlendingImages/data/water lily.jpg b/BlendingImages/data/water lily.jpg new file mode 100644 index 0000000..ee46e14 Binary files /dev/null and b/BlendingImages/data/water lily.jpg differ diff --git a/IndependentImagePractice/IndependentImagePractice.pde b/IndependentImagePractice/IndependentImagePractice.pde index 8b13789..9c3d0d8 100644 --- a/IndependentImagePractice/IndependentImagePractice.pde +++ b/IndependentImagePractice/IndependentImagePractice.pde @@ -1 +1,23 @@ + +PImage dog, galaxy,heart; //declare variables + + +void setup() { + size(400,267); //set canvas size + dog = loadImage("dog.jpg"); //assign variables + galaxy = loadImage("galaxy.jpg"); + heart = loadImage("heart.png"); + dog.mask(heart); //heart covers dog + + +} + +void draw(){ + background(0); //set background color to black + image(dog,0,0); //put dog image at 0,0 + + blend(galaxy,0,0,400,267,0,0,400,267,MULTIPLY); //multiply dog and galaxy colors + filter(ERODE); //blurs in details + +} \ No newline at end of file diff --git a/IndependentImagePractice/data/dog.jpg b/IndependentImagePractice/data/dog.jpg new file mode 100644 index 0000000..5813d0f Binary files /dev/null and b/IndependentImagePractice/data/dog.jpg differ diff --git a/IndependentImagePractice/data/galaxy.jpg b/IndependentImagePractice/data/galaxy.jpg new file mode 100644 index 0000000..ca6074b Binary files /dev/null and b/IndependentImagePractice/data/galaxy.jpg differ diff --git a/IndependentImagePractice/data/gate.jpg b/IndependentImagePractice/data/gate.jpg new file mode 100644 index 0000000..f42da91 Binary files /dev/null and b/IndependentImagePractice/data/gate.jpg differ diff --git a/IndependentImagePractice/data/heart.png b/IndependentImagePractice/data/heart.png new file mode 100644 index 0000000..ec1957b Binary files /dev/null and b/IndependentImagePractice/data/heart.png differ diff --git a/IndependentImagePractice/data/husky.jpg b/IndependentImagePractice/data/husky.jpg new file mode 100644 index 0000000..d7b5771 Binary files /dev/null and b/IndependentImagePractice/data/husky.jpg differ diff --git a/IndependentImagePractice/data/husky2.jpg b/IndependentImagePractice/data/husky2.jpg new file mode 100644 index 0000000..03a3006 Binary files /dev/null and b/IndependentImagePractice/data/husky2.jpg differ diff --git a/IndependentImagePractice/data/ocean.jpg b/IndependentImagePractice/data/ocean.jpg new file mode 100644 index 0000000..43d7b26 Binary files /dev/null and b/IndependentImagePractice/data/ocean.jpg differ diff --git a/IndependentImagePractice/data/star bw.png b/IndependentImagePractice/data/star bw.png new file mode 100644 index 0000000..5bd51c1 Binary files /dev/null and b/IndependentImagePractice/data/star bw.png differ diff --git a/IndependentImagePractice/data/star.jpg b/IndependentImagePractice/data/star.jpg new file mode 100644 index 0000000..cd50e42 Binary files /dev/null and b/IndependentImagePractice/data/star.jpg differ diff --git a/MaskingImages/MaskingImages.pde b/MaskingImages/MaskingImages.pde index 8b13789..0cee85b 100644 --- a/MaskingImages/MaskingImages.pde +++ b/MaskingImages/MaskingImages.pde @@ -1 +1,31 @@ +//PImage main; +//PImage mask; +PImage pug; +PImage heart; + +void setup() { + size(800,800); + // main = loadImage("water lily.jpg"); //adds image to data + // image(main,0,0); + // mask = loadImage("husky.jpg"); //adds image to data + // image(mask,0,0); + imageMode(CENTER); + pug = loadImage("pug.jpg"); + image(pug,width/2,height/2); + heart = loadImage("heart.jpg"); + image(heart,width/2,height/2); + + //main.mask(mask); //puts two images together + + pug.mask(heart); +} + +void draw() { + background(0); + //image(main,0,0); //puts combined image + + image(pug,width/2,height/2); + + +} \ No newline at end of file diff --git a/MaskingImages/data/heart.jpg b/MaskingImages/data/heart.jpg new file mode 100644 index 0000000..b4e764c Binary files /dev/null and b/MaskingImages/data/heart.jpg differ diff --git a/MaskingImages/data/husky.jpg b/MaskingImages/data/husky.jpg new file mode 100644 index 0000000..f86736b Binary files /dev/null and b/MaskingImages/data/husky.jpg differ diff --git a/MaskingImages/data/pug.jpg b/MaskingImages/data/pug.jpg new file mode 100644 index 0000000..f9bd5f0 Binary files /dev/null and b/MaskingImages/data/pug.jpg differ diff --git a/MaskingImages/data/water lily.jpg b/MaskingImages/data/water lily.jpg new file mode 100644 index 0000000..9a63e2c Binary files /dev/null and b/MaskingImages/data/water lily.jpg differ