We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello all. I am sorry to those who are so picky that I am opening up a non programming based topic. I apologize. I believe that we here at the Processing Forums can also sympathize with those in France, who have suffered through this tragic happening. Here at Processing I would like all to post here on this discussion:
int width = 25;
int height = 50;
int x1 = 10;
int x2 = 10+width;
int x3 = 10+(width*2);
int y = 30;
void draw(){
stroke(0);
fill(0,0,255);
rect(x1,y,width,height);
fill(255);
rect(x2,y,width,height);
fill(255,0,0);
rect(x3,y,width,height);
}
It is a french flag and you can copy and paste the code to show your support. Thank you all, and please add your hearts to those aiding those in France.
Comments
I code for France!
Peace..............
Thank you all. Please continue posting. All of Processing. Code for France
Peace
You guys might be interested in this Code Golf challenge: http://codegolf.stackexchange.com/questions/64140/draw-the-national-flag-of-france
Thank you for the suggestion Kevin Workman!
One more:
shortest way i found to solve this code-golf-thing in processing:
size(78,52);stroke(255);strokeWeight(26);background(#EF4135);fill(#0055A4);rect(-13,-13,52,78);
95 Bytes.
Nice solution. Inspired by you, a tiny shorter with different colors (so breaking the rules from the page...).
size(78,52);stroke(-1);strokeWeight(26);background(-65536);fill(#0055A4);rect(-13,-13,52,78);
@benja very clever : ) ^:)^ :-bd
With scale() instead of strokeWeight(), now 89 Bytes:
size(78,52);scale(26,52);stroke(255);background(#EF4135);fill(#0055A4);rect(-2,-1,3.5,3);
@clankill3er: I really like the idea with the negative color-values!
How does those negative values work?
Look at their bit representation. A minus sign is usually represented with a 1 at the beginning of the number, but only where the system expects it. Say you have an 8 bit number (a byte). Then you could have values between 0 (0000 0000) and 255 (1111 1111). But if you're on a system which handles minus signs your range is from -127 to 127 because the first bit is the minus sign. Colours don't use a minus sign so it looks for values between 0 and 255 so when you enter a negative number it thinks that bit is representing a number, not a sign.
The current Processing entry takes 100 bytes, so you should submit yours!
Ok i did, using
-1
as white makes this even one byte smaller.as we are 25/11:: (not time enough to index z var to frequency:: todo!!!)
////////////////////////////////////////////