0

P-Comp :: Response to Reading

Overall I really enjoyed delving into the first 6 chapters of Code: The Hidden Language of Computer Hardware and Software. The language and style of writing is probably the most casual of any code or programming book that I have ever read, and I really appreciate this approach in delivering the content. It makes reading, what could be considered dry and boring material, exciting and enjoyable.

In the first chapters explores the nature of binary codes, and demystifies the logic behind Morse code and Braille. For someone who is unclear with how these methods of communication work, it was so interesting to realize how these languages have been developed. I didn’t realize that they were built upon mathematic foundations, powers of 2, combinatorics, etc., but it makes complete sense. Math, however, was never a great friend of mine, so I am interested to look at in from a new perspective while discovering the logic of coding.

Chapters four through six looks at building simple circuits, and the necessary components for connections to function. I appreciated his approach to teaching the reader the symbols of schematics, by slowly introducing important symbols. I will admit that I am still struggling with the mathematic component of measuring voltage, amps, and ohms. I think I need to go back and re-read those parts where he explains in depth how to calculate them.


0

CODE: Assignment 8

Psuedo-Code for Final Project

Create a time-lapse image:

1. Connect camera to computer

2. Detect camera

3.Open window which displays picture

4. Save image

5. Print image with 50% alpha channel

6. Save another image a half second later

7. Print image with 50% alpha channel

8. Repeat steps 5 and 6 for 60 seconds.

9. Save final image as a high resolution .jpg

photography examples:
n678193055_1962703_9441

123212289_141ecf8107

get_image


0

CODE: Midterm

Link to midterm


0

CODE: Assignment 6

Sketch 1

Sketch 2


0

CODE: Assignment 5

Below are links to my two different programs written over the weekend. Damn they took a long time!

The first one has simple user interactivity.
Clicking the mouse lets you draw black circles.
If you press “G” you will see a square which changes color with every mouse click.
Press any other key to return to drawing the circles.

Link to program

The second program is a drawing application.
Press “R” to change the color to red.
Press “G” to change the color to green.
Press “B” to change the color to blue.
“S” and “C” toggles the brush between square and circle shapes.
The UP and DOWN arrows increase and decrease the size of the brush.
The RIGHT and LEFT arrows increase and decrease the alpha channel of the color.
DELETE clears the canvas.

Link to program


1

CODE: Assignment 4

So tonight was my first attempt as using Processing to draw and animate objects.

My first program just draws a simple picture. The objects are are proportionate to however large the canvas size is set to. You can check it out here!

My second program animates a ball which is constantly changing color at random. The ball bounces back and forth. There is another ball, whose position is based on the mouse location. You can check it out here!


0

CODE: Assignment 2

Here is a link to my madlibs program


0

CODE – Assignment 2

Fractal Tree
The aesthetic of this particular example is absolutely beautiful. I love how visually complex the image of the tree is, while the functionality remains so unbelievably simple (moving the mouse right and left).

Wormhole
The movement involved in this example is great. The continuous looping of everything getting “sucked down” into the center is hypnotizing. It’s almost as if I could just stare at it forever, but if I stare at it for too long I’ll get really dizzy!

Chain
The thing I like most about this particular example is the way in which the physics of the balls and chain react to the users interaction with the mouse. Both direction and speed of the mouse effect the way in which balls relate to the space and each other.


0

CODE – Assignment 1

Psuedo-Code:

How to Get a Kiss:

I. Go outside (assuming that you are inside)
A. Go to door of building
1. Open door
a. Push
b. Pull
B. Jump out nearest window
1. Surivive
2. Hurt yourself
a. Call 911
b. Just deal with it
3. Die

II. Travel to a park
A. By foot
1. Walk
2. Skip
3. Run
4. Gallop
B. By public transit
1. By subway
a. Red Line
b. Green Line
c. Yellow Line
2. By bus
C. By bike
1. Wear helmet
2. Dont wear helmet

III. Search for someone to kiss
A. By their looks
1. They are attractive
a. great
2. They are not so cute
a. look again

IV. Kiss them
A. Get kissed back
1. Kiss again
2. Blush
3. Tell all your friends
B. Get smacked in the face
1. Cry
2. Weep
3. Tell all your friends