Category Archives: Uncategorized

Project #3C

Coding used for final project

 

import processing.video.*;
//name the video so it can find it further on down.
Movie thevideo;
boolean isPlaying;
boolean isLooping;

// An array of font,
String[] headlines = {
“Sometimes we are looking for the beauty in broken things – 2014”,

};
//prepare the font lables.
PFont f; // Global font variable
float x; // horizontal location of headline
int index = 0;
void setup() {
//setting up frame size and frame rate, along with speed of imagery
size(640, 480);
frameRate(10);
f = createFont(“Arial”,50,true);
// Initialize headline offscreen to the right
x = width;

//import video from data file
thevideo = new Movie(this, “Sequence 1.mov”);

thevideo.loop(); //plays the movie over and over
isPlaying = true;

}
//DISPLAY IMAGE WITH NO MOVEMENT RELATED TO MOUSE X AND Y
void draw() {
background(0);
image(thevideo, 0, 0);

//MOVE THE FONT DOWN AT THE BOTTOM OF THE IMAGE
// Display headline at x location
textFont(f,50);
textAlign(BOTTOM);
text(headlines[index],x,470);
//allows the speed to be effected
// Decrement x
x = x – 3;

//THIS CODE WOULD BE USED TO MAKE IT REPEAT OVER AND OVER.
// If x is less than the negative width,
// then it is off the screen
//float w = textWidth(headlines[index]);
// if (x < -w) {
// x = width;
// index = (index + 1) % headlines.length;
}

 

void movieEvent(Movie m) {
m.read();
}

//causes the image to pause.
void keyPressed() {
if (key == ‘p’) {
// toggle pausing
if (isPlaying) {
thevideo.pause();
} else {
thevideo.play();
}
isPlaying = !isPlaying;

//create a loop to the begining.
} else if (key == ‘l’) {
// toggle looping
if (isLooping) {
thevideo.noLoop();
} else {
thevideo.loop();
}
isLooping = !isLooping;

//makes the footage stop
} else if (key == ‘s’) {
// stop playing
thevideo.stop();
isPlaying = false;

//cut to new scene
} else if (key == ‘c’) {
// jump to a random time
thevideo.jump(random(thevideo.duration()));
}
}

Fancy_Project#3B

Coding for my assignment 3B

//need to be able to set up a frame rate for the screen as well as a size.
void setup() {
size(400, 400);
frameRate(4);
smooth();

}
//names assigned to each individual item. you need to be able to call upon.
int pos = 0;
int saveNum=0;

void draw() {
exportFrame();

//background color
background(255);
// if any button is pressed it will result in the screen going completely black in color while if not pressed
screen will be white and display objects.
if(keyPressed == true) {
background(0);
}
//screen will display white.
else {
background(255);

// calling upon the rectangle where it is located 90, 180 somewhat middle of the screen.
pos++;
rect(pos, 90, pos, 180);
fill(0);
if (pos > width)
pos = 0;

//the ellipse will move based upon where the mouse X AND Y are located watch as it follows on the screen.
ellipse(mouseX, mouseY, 60, 60);

 
println(“mouseX = ” + mouseX, “mouseY = ” + mouseY);
//this will make the
fill( random(255), random(255), random(255), random(255));
}
}

 

//pressing s as either small letter or capital letter will allow you to save the image in the folder that the code is saved to.
void exportFrame() {
if(keyPressed){
if(key == ‘s’ || key == ‘S’) {
save(“masterpiece” + saveNum + “.png”);
saveNum++;
}
}
}

20140326-013946.jpg

20140326-013959.jpg

20140326-014007.jpg

20140326-014052.jpg

20140326-014218.jpg

Reading response March 17th

Does interactivity happen to surpress our creativity or merely enhance the possibilities to go above and beyond?

Do you have to physically interact with something in order to enjoy it completely, or can one just watch and get the same kind of entertainment?

Project #3A Reconstruction of painting

Screen Shot 2014-03-17 at 12.11.51 AMScreen Shot 2014-03-17 at 12.28.25 AM

Final copy of reconstruction.

The coding used to create.

//size of the rectangle
size(620,570);
//change background to black
background(0);
noStroke();
fill(255,242,188);
rect(0,0,175,175);

//red rectangle
fill(150,0,0);
rect(190,0,540,397);

//second from the top yellow rectangle
fill(255,242,188);
rect(0,200,175,195);
//
//navy blue rectangle
fill(4,33,89);
rect(0,410,175,198);

//white block bottom middle
fill(255,242,188);
rect(190,410,360,397);

//right white far right
fill(255,242,188);
rect(560,410,500,80);

//orange bottom block
fill(222,158,11);
rect(560,500,500,70);

Project #2 planning

Control the speed http://www.dummies.com/how-to/content/how-to-control-the-speed-of-a-dc-motor-with-the-ar.html

The text in which is needed for the design of my project number 2.

night light setup

void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
}
void loop() {
int sensorValue = analogRead(A0);
if (sensorValue < 200) { // To change the point at which the light turns on change this value.
digitalWrite(3, HIGH);
}
else {
digitalWrite(3,LOW);
}
}

http://makezine.com/projects/arduino-controlled-night-light/ website for coding
^^ This is the sensor light in which the LEDs go on when the sensor is covered.

const int switchPin = 2;
const int motorPin = 9;
int switchState = 0;

void setup() {
pinMode(motorPin, OUTPUT);
pinMode(switchPin, INPUT);
}

void loop(){
switchState = digitalRead(switchPin);

if (switchState == HIGH) {
digitalWrite(motorPin, HIGH);
}
else {
digitalWrite(motorPin, LOW);
}
}
coding for the process in which the wheel spins.

Must still figure out how to control the speed in which the wheel spins.

the other idea is to go with the LCD screen saying open or closed depending on the operation of the wheel itself.

Week 4-5 blog entry

We got introduced to this the subjectivity of interaction there is many different types of interactions. As a class we were able to experience with many different types of interactions whether or not it was constructing an interaction or merely being the subject of interest for the interaction to take place, regardless of what we were doing the equation was a + b = c in most cases. We predominately worked within the fact that within interaction there can be censors in objects.

 

As a class we discussed what had sensors in it and I completely forgot about how many items within just a house could have the result of sensors. Take something such as a thermostat nothing we really consciously think about we set it and it does its job without the worry of an individual to continuously watch it. So does sensors essentially make our lives easier and make us lazier? Technology is advancing to the point that we no longer even need a remote to change to channel on the TV our TVs can now simply read our movements and determine what action to take without having to search the house for a remote that happens to be stuck within the couch cushion!

 

Does this happen to be a pro or a con. Will these advancements essentially make us dependent on technology for every day activities?

Inferno Nightclub Logo

1010541_394835300620684_1980786439_n

Here is something I put together for a good friend Jessie, it is for a new nightclub & Shisha bar opening up here in Lethbridge! Super cool to see my work up and lit up!

fans33’s photostream

purplejune_20archy1000infernoimgtimgfarIMG_7698
IMG_7696IMG_7695IMG_7694IMG_7693IMG_7690IMG_7688
IMG_7681IMG_7680IMG_7679IMG_7675IMG_7673IMG_7671
IMG_7669IMG_7665IMG_7664IMG_7663IMG_7661IMG_7660

Here are some photos taken from Internet Television Production.