Entradas

Interactive Art [Week 11] - Installation

Imagen
Installation First attempt for game: The problem with this approach was that the rotation for the car stayed at the center of the canvas but the car changes it's relative position to the center so the further the car is, the movements become unrealistic. The second approach to the game was to do a "lane changer" so the potentiometer controls the X position while the buttons controls the Y position. In this example the buttons functions as gas and brake pedals and the potentiometer as a steering wheel.

Interactive Art [Week 8] - Interactive Button

Imagen
Homework Code import processing.serial.*; Serial Port; int val; int TurnNum; int Boom; PImage img1; PImage img2; PImage img3; void setup()  { size(1000, 1000); printArray(Serial.list()); Port = new Serial(this, Serial.list()[1], 9600); TurnNum = 0; Boom  = (int) random(150); img1 = loadImage("1.png"); img2 = loadImage("2.png"); img3 = loadImage("3.png"); } void draw() {   //background(0);      if ( Port.available() > 0) {      val = Port.read();          println("Button Pressed: " + val);     println("Turn Num: " + TurnNum);     println("Boom: " + Boom);          if (TurnNum > Boom){       image(img3,0,0);     }   }      if (val == 0){     fill(0);   }else{     TurnNum = TurnNum + 1;          if (TurnNum >= 0 && TurnNum <=9){       image(img1,0,0);     }          if (TurnNum >= 10 &

Interactive Art [Week 7] - LED Video

Imagen
Homework 1 Code const int WhiteButtonPin = 8; const int RedButtonPin = 9; const int YellowButtonPin = 10; const int GreenButtonPin = 13; int WhiteButtonState = 0; int RedButtonState = 0; int YellowButtonState = 0; int GreenButtonState = 0; void setup() {   pinMode(WhiteButtonPin, OUTPUT);   pinMode(RedButtonPin, OUTPUT);   pinMode(YellowButtonPin, OUTPUT);   pinMode(GreenButtonPin, OUTPUT); } void loop() {   digitalWrite(GreenButtonPin, HIGH);   delay(300);   digitalWrite(YellowButtonPin, HIGH);   delay(300);   digitalWrite(RedButtonPin, HIGH);   delay(300);   for (int i = 0; i < 3; i++)   {     digitalWrite(RedButtonPin, HIGH);     digitalWrite(YellowButtonPin, HIGH);     digitalWrite(GreenButtonPin, HIGH);     delay(100);     digitalWrite(RedButtonPin, LOW);     digitalWrite(YellowButtonPin, LOW);     digitalWrite(GreenButtonPin, LOW);     delay(100);   }   delay(300);   for (int i = 0; i

Interactive Art [Week 5] - Arrays

Imagen
Week 5 - Arrays For this project I wanted to create a random selector of the main characteristics of the ball, size, color, and "bounciness" that are pre-stored in the corresponding array.  I also wanted to use an array that "creates" more balls but I couldn't do it :( so it's only an infinite array that creates balls of the same characteristics but they can't move. File:  https://drive.google.com/file/d/1GI8IdBBBGiUr35MZD994n0Tv36Veu3gi/view?usp=sharing

Interactive Art [Week 4] - Math Flower

Imagen
Week 4 - Nature patterns  For this project I took inspiration from the mathematical distribution of certain flowers and look up to a formula that changes the petals pattern according to a variable, in the first example the variable changes according to the value given from the slider and in the second example the value is a random number between the value of the slider as the minimum and 15 as maximum File:  https://drive.google.com/file/d/12Kg3kC0S6QafEL4nRxh6j-fDJATS661D/view?usp=sharing

Interactive Art [Week 3] - Interactive & Animated

Imagen
Week 3 - Animation & Interactiveness  For this week assignments I changed one or two things: For the animation scene, I was inspired by Starwars spaceships (as I said last week, I love space) and for the appearance  of movement, I make the ships  leave a trail behind themselves For the interactive assignment, I made the spaceship from the first movie respond to a keypress and changed a  little bit the background composition  making it look like it is moving. .zip File: https://drive.google.com/file/d/1dzw0pEUZ7o09x_h9vCtL2ZUSRR33AwI-/view?usp=sharing

Interactive Art [Week 2] - Interstellar

Imagen
Week 2 September 11, 2019 Interestellar Since I was a kid, I always liked space themed movies, Doesn't matter if it was from  video games  or books I always got amazed for the vast  unknown . I like to pay an Homage to this movie mainly because  it's  one of the most accurate space depictions of astrophysical phenomena and the amazing score. _________________________________________________________________________________ Image _________________________________________________________________________________ Code The first part of the code was making the cosmic backgroung, avoiding loosing time, I used a randomizer to put little dots in diferent positions to resemble the cosmic void. Then, using the vertex shape, created the main ship and the center of the docking station. For last but not least, I repeated the code of square for the docking station components except for the inner circle, this part was a litte bit difficult because I didn'