diff --git a/BasicImages/BasicImages.pde b/BasicImages/BasicImages.pde index 8b13789..118aaae 100644 --- a/BasicImages/BasicImages.pde +++ b/BasicImages/BasicImages.pde @@ -1 +1,17 @@ +PImage litty; +float scalefactor = .1; +void setup(){ + litty = loadImage("mega_lucario.png"); + size (1000,800); +} +void draw(){ + background(0); + image(litty, mouseX, mouseY, litty.width *.5, litty.height*.5); +} + +void mousePressed(){ + if (keyCode == UP) { + + } +} \ No newline at end of file diff --git a/BasicImages/data/mega_lucario.png b/BasicImages/data/mega_lucario.png new file mode 100644 index 0000000..288c407 Binary files /dev/null and b/BasicImages/data/mega_lucario.png differ diff --git a/BasicImages/data/t rex.jpg b/BasicImages/data/t rex.jpg new file mode 100644 index 0000000..771b9d3 Binary files /dev/null and b/BasicImages/data/t rex.jpg differ diff --git a/FilteringImages/FilteringImages.pde b/FilteringImages/FilteringImages.pde index 8b13789..aa6c249 100644 --- a/FilteringImages/FilteringImages.pde +++ b/FilteringImages/FilteringImages.pde @@ -1 +1,13 @@ +PImage litty; +float scalefactor = .1; +void setup(){ + litty = loadImage("mega_lucario.png"); + size (1000,700); +} +void draw(){ + background(0); + image(litty, mouseX, mouseY, litty.width *.5, litty.height*.5); + + filter(INVERT); +} \ No newline at end of file diff --git a/FilteringImages/data/mega_lucario.png b/FilteringImages/data/mega_lucario.png new file mode 100644 index 0000000..5cb813f Binary files /dev/null and b/FilteringImages/data/mega_lucario.png differ diff --git a/IndependentImagePractice/IndependentImagePractice.pde b/IndependentImagePractice/IndependentImagePractice.pde index 8b13789..6e6766b 100644 --- a/IndependentImagePractice/IndependentImagePractice.pde +++ b/IndependentImagePractice/IndependentImagePractice.pde @@ -1 +1,36 @@ + import ddf.minim.*; +import ddf.minim.analysis.*; +import ddf.minim.effects.*; +import ddf.minim.signals.*; +import ddf.minim.spi.*; +import ddf.minim.ugens.*; // imports the library to the computer + +PImage fire; //Adds an image to the file +PImage snowman; //Adds an image to the file + + +AudioPlayer player; +Minim minim;//audio context + +void setup() { + size(800, 600); //sets size of background + snowman = loadImage("snowman.jpg"); //loads the image in + fire = loadImage("fire.jpg"); // loads the image in + fire.mask(snowman); //sets a mask of the image behind the other + background (0); //sets background color + minim = new Minim(this); + player = minim.loadFile("fire sound.mp3", 2048); //loads audio file + player.play(); //plays audio file +} + +void draw() { + + image(snowman, 0, 0); //draws image + filter(BLUR, .7); //sets a filter for the image + filter(POSTERIZE, 20); //only allows some colors to show + + + image(fire, 0, 0); //draws the image + tint(255, 25); //sets opacity +} \ No newline at end of file diff --git a/IndependentImagePractice/data/Supersaiyan.jpg b/IndependentImagePractice/data/Supersaiyan.jpg new file mode 100644 index 0000000..8a80df5 Binary files /dev/null and b/IndependentImagePractice/data/Supersaiyan.jpg differ diff --git a/IndependentImagePractice/data/fire sound.mp3 b/IndependentImagePractice/data/fire sound.mp3 new file mode 100644 index 0000000..f4ac0dc Binary files /dev/null and b/IndependentImagePractice/data/fire sound.mp3 differ diff --git a/IndependentImagePractice/data/fire.jpg b/IndependentImagePractice/data/fire.jpg new file mode 100644 index 0000000..aeffe07 Binary files /dev/null and b/IndependentImagePractice/data/fire.jpg differ diff --git a/IndependentImagePractice/data/saiyan.jpg b/IndependentImagePractice/data/saiyan.jpg new file mode 100644 index 0000000..cb21907 Binary files /dev/null and b/IndependentImagePractice/data/saiyan.jpg differ diff --git a/IndependentImagePractice/data/snowman.jpg b/IndependentImagePractice/data/snowman.jpg new file mode 100644 index 0000000..a5088f9 Binary files /dev/null and b/IndependentImagePractice/data/snowman.jpg differ