Welcome to my Web Portfolio Blog Page

In my blog you will find
my creative ideas, life experiences, articles, projects, coding, photos, videos, links
and much more.

(click here to return to www.rachelwalker.net)
Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Thursday, May 1, 2008

Stealth Clock

My stealth clock works….pieces move to the time, yet I seriously doubt you could look at it and figure out the exact time.

File name: Final_Clock
Photobucket
Photobucket
Photobucket
Photobucket
My Process:
-I started this project by opening Processing's clock code:
Open ;Basics; Input; Clock

-The moving orange rectangle on the left moves to seconds, as does the small black outlined rectangle in the bottom right corner.
-The small circle in the bottom left corner moves every minute.
-The blue line on the left side moves every hour.

-The cubes do not move to time. They are just something fun I put into my code to give it an extra umf. I tweaked the code.... I deleted some of it and re-wrote it with the help of Processing.org.

How I found the cubes:
Open; 3D and OpenGL; Transform; PushPopCubes

Process Cont…

*First, I started off just playing around with the ready-made clock Processing had
_1Clockhands

*Next, I worked with the clock, shapes, and color to create:
_2Clock

*Next, I added other moving elements, a circle, and a square
_3Clock

*Next, I added the Cubes and changed the shapes of the second, minute, and hour hands
_4Clock

*Finally, I changed the moving blue rectangle into an orange rectangle that moved to each second
_5Final_Clock

Sunday, April 20, 2008

Processing #4 post

This has a hot pink background and 2 stationary squares, one blue square in the upper left corner, and a slightly smaller black square, overlapping the blue square.
void setup() {
size(400, 400);
background(197,22,187);
}
void draw() {
background(197,22,187);
float m = millis();
fill(m % 194,46,182);
rect(mouseX, mouseY, 50, 50);
float n = millis();
fill(n % 238,231,41);
rect(30, 30, mouseX, mouseY);
float o = millis();
fill(o % 0);
rect(30, 30, 30, 30);
PFont fontA = loadFont("Ziggurat-HTF-Black-32.vlw");
textFont(fontA, 30);
int x = second();
fill(187,193,236);
text("Dawn", x, 60);
fill(230,203,25);
text("Morning", x, 95);
fill(244,113,8);
text("Afternoon", x, 130);
fill(112,19,228);
text("Dusk", x, 165);
fill(4,16,110);
text("Evening", x, 200);}
----------------------------------------------
This is a small white rectangle with a thin black stroke in the center of the page.
void setup() {
String bodyCountText[] = loadStrings("http://www.iraqbodycount.org/counters/min.txt");
println(bodyCountText[0]);
int s=int(bodyCountText[0]);
s=s / 10000 ;
println(s) ;
rect(20,20,40,s);
//the 20,20 are integers}
void draw() {}
----------------------------------------
ELSE STATEMENTS
This is just an example of a if /else statement:

void draw(){
if (second() <30){
println("hi");
}else{
println("bye");}}
//instead of printline you will us text and fill..etc
-----------------------------------

Saturday, April 5, 2008

Processing #3 post

Here is what you need to type in and some comments explaining what they are.
// will comment out a single line of code
/* will comment out a whole paragraph of code*/
-----------------------------------------------
This is a red background with white line that you control and pull with mouse.
void setup() {
// comment: this stuff only runs one time
size(200, 200); // the size of the applet
smooth(); // make it anti-aliased
background(255, 0, 0); // make the background red color
stroke(255); // set the fill color to white
}
void draw() {
// this is stuff you want to loop all the time
background(255, 0, 0);
// make the background red color - what if I take this out?
line(0,0,mouseX,mouseY);
}
---------------------------
Variables
- mouseX and mouseY are a sort of a variable....
- You can make line art, word art, shape art.
-----------------------------
This is a white square that starts in the upper left corner and moves diagonally to the bottom right corner; as it travels it leaves a black trail. Does not repeat.
int myint = 0 ;
void setup() {
size (400,400) ;}
void draw() {
rect(myint,myint,50,50);
myint = myint + 1;}
------------------------------
This is a black line that starts in the upper left corner and moves diagonally to the bottom right corner; If you move the mouse onto the line a white square will form and reshape itself as you move the mouse around. As it travels it leaves a black trail. Does not repeat.
int myint = 0 ;
void setup() {
size (400,400) ;
}
void draw() {
rect(myint,myint,mouseX,mouseY);
myint = myint + 1;
}
---------------------------
This has a black background in the middle at the top, a white square drops down to the bottom of the page and disappears again. Does not repeat.
int myint = 0 ;
void setup() {
size (400,400) ; }
void draw() {
background(0,0,0);
rect(100,myint,50,50);
myint = myint + 2;
println(myint); }
-------------------------------------
This is a white square that starts in the upper left corner and moves diagonally to the bottom right corner; as it travels it leaves a black trail. It moves to Seconds and after a minute it repeats.
//time process: clock
void setup() {
size (200,200) ; }
void draw() {
rect(second(), second(), 20,20);
}
----------------------------

Wednesday, April 2, 2008

Processing #2 post

//copy and paste into Processing and run it.
//This code is a time process (Clock)

void setup() {
size (200,200) ; }
void draw()

{
rect(mouseX, mouseY, second(), second() );

background(0,0,0);
int s = second(); // Values from 0 - 59
int m = minute(); // Values from 0 - 59
int h = hour(); // Values from 0 - 23
ellipse(s, 60, s, 60);
rect(m, 10, m,60);
rect(h, 60, h, 100);
}

Thursday, March 27, 2008

Processing #1 post

Processing

-You use a program called "Processing," which is easily downloadable from the website.
*
*
*
Lets play with the program...
go to: Open, Basics, Form, ShapePrimitives

You can change the color of the Background and Fill by inserting the proper color values
-you can open photoshop and find the RGB color values you need!

RGB!

-You can make each shape different color by adding Fill a few more times.

Save it in a Processing folder.

-------------------

There is a Reference Page that can help you on the website.
In Processing if you highlight a word like 'line' or 'rect' and right click it with the mouse and go to "find reference" it will take you to the website.

Tuesday, March 4, 2008

Pseudocode

http://en.wikipedia.org/wiki/Pseudocode

Pseudocode is writing code in English so you can understand it. Then it makes writing it in code easier later.


EX:
if credit card number is valid
execute transaction based on number and order
else
show a generic failure message
end if



Assignment
1. Create pseudocode for an everyday action. Write on paper and hand in on PAPER.
-Break down a task ( anything you want)
-Make it half a page or more, single spaced
-Write it down on a piece of paper and turn it in.

-Think of something you do in your everyday life
(wash your face, brush teeth, take 15 steps to the bathroom,
bend down and pick up towel from floor, etc...)
-Do  by yourself!
2. Create and DOCUMENT an event-score (you may work with a partner) which elevates the mundane. Concentrate on simplicity over complexity.
Next:  Create an event score
http://transition.turbulence.org//uapd/?p=26

-Elevation of the mundane
Ex: Select a subject and then write 5 million pages about it


-you can make an event score and make someone else do it
-think of something wacky!!
-think positively
-don't' hurt yourself or others

-You can have a partner
-You must document it somehow ---videotape?

--the 2 projects do not have to relate to one another.

--------------------

-Fluxus
http://en.wikipedia.org/wiki/Fluxus
http://fluxus.org/

-Fluxus is a name taken from a Latin word meaning "to flow"—is an international network
of artists,composers and designers noted for blending different artistic media and
disciplines in the 1960s. They have been active in visual art and music
as well as literature, urban planning, architecture, and design.
Fluxus is often described as intermedia, a term coined by Fluxus artist
Dick Higgins in a famous 1966 essay.

--Intermedia---fluxus---arts technology---


Important Fluxus artists:
-John Cage
-Nam June Paik
-Yoko Ono


"One line of a program doesn't do anything, but a full program can blow up a building."


------------------------

example code

-if/then

-do while
Do -scrub you body- while -the water is running-

-logical and
-logical or
-AND
-OR
-NOT
-FOR
-Loop

-Case  (case statement --situation)
Monday
Tuesday-388 course
Wednesday
Thursday-388 course
Friday

-Switch
-Select
-If
-Then
-Else

-------------------------

http://www.seattlecentral.edu/~ymoh/mic110vb/pseudocode.htm

Thursday, January 17, 2008

CODE

Art, anthropology, agency, code.

"What counts as art changes in different contexts" -Alfred Gell

Giant Campbell's Soup Can ------is this art---yes or no?

"To decide something is art, then analyze it as an art object is to forget how it became an art object."


Think of an art object as a person..... and apply anthropological theory to it.

Agency: it makes a difference between something that just controls something else
--the capacity to act
ex: hooters girls


Code can have a lot of agency!
ex: cell phone, elevators, voting booths, computers

How does code distribute agency?
-a virus slows down a computer
-a browser pops up windows all over the screen

Code is free speech!


Miranda July
http://noonebelongsheremorethanyou.com/

Sound Mirror
http://www.soundmirrors.org/


Ray Kurzweil
(I attended this)
--
Sesquicentennial speaker at Illinois State's Braden Auditorium
http://www.ilstu.edu/home/anniversary/kurzweil.shtml

Tuesday, January 15, 2008

DeCSS

DeCSS is a computer program capable of decrypting content on a DVD-Video disc encrypted using the Content-Scrambling System (CSS).

http://en.wikipedia.org/wiki/DeCSS