|
Author |
Topic: Processing tennis (Read 2103 times) |
|
Nekochan =^.^=
|
Re: Processing tennis
« Reply #45 on: Sep 4th, 2003, 2:45am » |
|
moshi-moshi! Hey, can I join in the 3rd round? This looks like fun, and some of the code is really great! Are there any concrete rules for this round? Several suggestions have been put forward, but none have been confirmed as actual rules. If you want an interesting rule, here's one from a creative programming session that me and my friends had a while ago: The group decides on a particular SHORT poem or quote. The only variables that you are allowed to use are the words in the poem, and they must be declared AND used in the order they appear in the poem/quote. The output of the program must be related to the poem/quote (and no, it can't just be the words of the writing). IT's more of a process than a rule, I guess, but it's pretty interesting and challenging, especially if you use a really short poem (which would limit your variables). This od lends itself to a lot of junk code (people use If-then statements that don't do anything, change varible values for no reason, etc.), but a group of people would be able to find interesting uses for the junk code and apply it to the program. What do you guys think?
|
oto no nai mahiru kaze ha tada akarui sukoshi nemutasou ni hanabira ga yureta nani ge nai kono omoi nee, hito ha donna kotoba de yondeiru no
|
|
|
benelek
|
Re: Processing tennis
« Reply #47 on: Sep 4th, 2003, 7:26am » |
|
arielm / bagel papa poule - do you have enough time to start this round?
|
|
|
|
arielm
|
Re: Processing tennis
« Reply #48 on: Sep 4th, 2003, 9:03am » |
|
ah benelek, you made my day just saw this note of yours while drinking my morning cup of something, but i'm not sure i will have time to be the "first one"... on my way out for a meeting (trying to sell my first proces55ing workshop!) a quickie on something that could help turning out all this back from the "salon de the" to something more sportive: there are a lot of nice ideas for different kinds of contests here... i think it would work if everyone that comes with a new idea would open a new (clean, separated) thread with simply some rules AND a first piece of code.
|
Ariel Malka | www.chronotext.org
|
|
|
Koenie
|
Re: Processing tennis
« Reply #49 on: Sep 4th, 2003, 5:11pm » |
|
Maybe we shouldn't all be wanting to make the rules. What about I make some rules and you can post here if you disagree. When the rules are set, we can start a new game of P5Tennis in a new thread. Sounds good? Here are the rules: - first person posts a bit of code - next person takes the code and improves/changes it - maximum lines of code is 100 with only one statement every line - after 10 turns the next round starts with an extra variable allowed (this round will start with 3 variables) - anyone can play, but the code which is posted first after the last post, is the code to go on with Koenie
|
« Last Edit: Sep 4th, 2003, 5:11pm by Koenie » |
|
http://koeniedesign.com
|
|
|
vent
|
Re: Processing tennis
« Reply #50 on: Sep 8th, 2003, 11:05pm » |
|
Those rules sound good. >> Just couldn't wait any longer I hope people still want to play.... Code: //Processing tennis // round 3 by Zevan int theSize,random1,random2; void setup() { size(380, 350); noBackground(); noStroke(); theSize=width*height; } void loop() { for(int i=0; i<(theSize)-mouseX; i+=1){ pixels[i] = ((pixels[i+mouseX]&0xff)+1)*65793; } if (mousePressed){ random1=(int)random(255); fill(random1,random1,random1,10); beginShape(POLYGON); random1=(int)random(width); random2=(int)random(height); vertex(random1,random2); random1=(int)random(width); random2=(int)random(height); vertex(random1,random2); random1=(int)random(width); random2=(int)random(height); vertex(random1,random2); endShape(); for(int i = 0; i<10; i++){ random1=(int)random(255); fill(random1,random1,random1,10); random1=(int)random(50); ellipse((int)random(width),(int)random(height),random1,random1); } } for(int i=0; i<(theSize)-2; i+=3){ pixels[i]=(((25 * ((pixels[i] & 0x00ff00ff) - (pixels[i+2] & 0x00ff00ff)) >> 8) + (pixels[i+2] & 0x00ff00ff)) & 0x00ff00ff) | ((25 * ((pixels[i] & 0x0000ff00) - (pixels[i] & 0x0000ff00)) >> 8) + (pixels[i] & 0x0000ff00)) & 0x0000ff00; } } |
|
|
« Last Edit: Sep 8th, 2003, 11:21pm by vent » |
|
http://www.shapevent.com/
|
|
|
|