Subway Gardening

Living in New York, we get to enjoy the twenty-four seven service of MTA. People ride on them on a daily basis, to get to work, school, home, and other places. We spent a big amount of time inside, but never really enjoyed the space. It’s gloomy, stinky, and lifeless.

What if we could make the space more interesting to commuters? How can we make use of new technologies and bring more life to it. Maia and I decided to work on this project, a project about Subway Gardening.

From the photos we took, we found great potential on it. It’s spacious, has all-day (artificial) light, and even a guaranteed power supply.


After the observation, we decided to recreate a hydroponic, self-sustained system for plants to grow. Here’s a few sketches we had.

The system must:

  • Build on existing subway structure
  • Supply light, water, and nutrients needed in a photosynthesis

 

Turning LED with Creative Switches

After being able to light up a push button LED, we were asked to make a creative switch. I decided to try toggle switch, when switch to one side, one of the LED lights up, when switch to another, another LED lights up. But then I failed. Both LED lights up when switch is on one side. Which is not what I want. My good classmate Tushar came over and helped me with the sketch and board.


This second one was a flat iron switch! When the two ends touch together, LED lights up. I grab some aluminum foil from the shop and wrap them around the iron. Then place two wires to each side respectively.



The third one was a swiper switch, that when card is swiped across swiper, LED lights up. The shapes were created using laser cutter. I assembled them and included coil tapes and jumper wires.

Animating with p5js

Mid-Autumn Festival is this Sunday! It’s one of the big event we celebrate in my country. Traditionally, we would gather for moonlight BBQ parties at a house or riversides. An interesting fable about this event is that once there was a rabbit who was sent to the moon by the gods because of its kind act toward them. Having said, I relate myself as the hare who is far away from home this year.

Development & Difficulties:
In this project, we were asked to include two things, elements that could be controlled by mouse and elements that could change independently over time. I tried to input the criteria in my artwork with the following elements.
1. Star – shines at random position continuously within the canvas
2. Moon – moves and resizes with mouse movement
3. Skyline – color changes with mouse movement
4. Rabbit – eyes and shadows changes with mouse movement

One of the problem I encountered was to map more than two sets of colors in p5js. I was intending to do a more complicated color mapping with the skyline at first; changing the colors from orange to blue to dark blue as mouseX start at 0, to halfway its width, then to full width. Sort of like a sunset effect. But I was not able to achieve it. One of the residents told me that I might need to bring in the if-else statement to do so.

Full Code Here:
https://editor.p5js.org/shujuuu/sketches/rJquSNod7

Q: How to map three or more sets of colors for a given width?

Drawing with p5js

In the first week of our class, we looked into the possibilities of computational media and some inspiring artists that created their artpieces with codes and algorithms. Some of which are Sol LeWitt’s Interaction of Colors, Vera Molnar’s Hypertransformation of 20 Concentric Squares, and John Cage’s Williams Mix. We were introduced with p5.js, a javascript library that will be use as the main tool for this semester.

Process:

Our take home work was to do a screen drawing through p5js. I start off with a quick sketch before coding. The process was basically trial and error, guessing placements for all the primitive shapes. Despite the simplicity of my drawing, it was time consuming. I was wondering if there is a simpler way where they could import SVG into p5js, that will be a time-saver. Also, I feel like the lines and shapes I drew out with code is not as smooth and freely as compared with my sketch.

Full Code Here:
https://editor.p5js.org/shujuuu/sketches/S1m0Amk_m

Interest & Experience:

I never thought I would want to start coding. Working as UI designer, I deliver wireframes and visuals to developers; watch them turn those pages to interactive sites. Often times, we would have a couple communications before they could grasp the big picture and begin to get everything right. I believe it would be a lot easier for designer to know a bit of programming, that way we can think like the developer and minimize the language barrier.

By the end of this term, I wish to be able to visualize data through programming and to build a full-interactive site. I imagined the experience would be more like giving birth of a child on your own rather than having doctor assists you.

Questions:
1. Does p5js support SVG?
2. How to comment multiple lines of code?