FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Discussion
   General Processing Discussion
(Moderators: fry, REAS)
   code_expression
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: code_expression  (Read 620 times)
pollux

WWW Email
code_expression
« on: May 20th, 2003, 1:33am »

this is a thread about expressing yourself through code. it was inspired by Martin's code!=art ( http://proce55ing.net/discourse/yabb/board_general_action_displ_ay_num_1050771908.html )
 
it is intended to explore the communication possibilities that programming languages can generate
 
the main idea is to post pseudo-code that express an idea, a thought, a state of mind, an aesthetical model, an idiosyncrasy. so please feel free to post here any concept, rave, thought, opinion the only limitation is that it has to be "coded". think of this as code prose or poems...
 
please note that the code is not to be compiled, executed or run by any means.
 
a little example:
 
Code:

// PLEASE DO NOT COMPILE!! (for your own safe)
 
// chronic depression 1.0b1
// by prozac_lover
 
color misery = color(#000000);
color pain = color(#990000);
boolean happiness;
 
void setup() {
  size(tiny, tiny);
  background(misery);
  stroke(pain);
  noFill;
}
 
void loop() {
  for(int x=0; x<0; x++) {
    String lifeSaysIAm = "worthless...";
    println("i am "+ lifeSaysIAm);
  }
  happiness = false;
}
 
// PLEASE, PLEASE DO NOT RUN THIS CODE, OR YOU'LL BE  
// AS MISERABLE AS IT DESCRIBES!!
 
// feel free to debug it!!
« Last Edit: May 23rd, 2003, 12:20am by pollux »  

pollux | www.frwrd.net
fry


WWW
Re: public class code_expression extends BApplet
« Reply #1 on: May 20th, 2003, 6:40pm »

size(tiny, tiny) won't work with the current rev. you'll have to use a number.
 
whoops, this isn't the bugs bboard.
 
mr.prufrock

WWW Email
Re: code_expression
« Reply #2 on: Jun 27th, 2003, 12:39am »

if happiness is alway false, you probably don't want to put it in a loop()... arghh...
 
how about "happiness = !happiness", or just exit(-1) ?
 
 

I grow old...I grow old
I shall wear the bottoms of my trousers rolled.
benelek

35160983516098 WWW Email
Re: code_expression
« Reply #3 on: Jun 27th, 2003, 3:07am »

Code:

String theTruth;
String highlyPossible = "we have become mathematicians, talking in equations....";
 
boolean digitalAgreementByAll = false;
 
if(digitalAgreementByAll==true) theTruth=highlyPossible;
 
if(theTruth!=null) println(theTruth);
 
 
//only for parties held by mathematicians
void veryFunny() {
  String joke = "where do you go to weigh a pie?"
  String answer = "somewhere / over the rainbow... weigh... a... pie....";
  println(joke);
  println(answer);
}
 
Pages: 1 

« Previous topic | Next topic »