We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Diabeticrabbit's Scribbler - First Version, Basic
Page Index Toggle Pages: 1
Diabeticrabbit's Scribbler - First Version, Basic (Read 1330 times)
Diabeticrabbit's Scribbler - First Version, Basic
Mar 27th, 2009, 5:02pm
 

//Diabetic Rabbits Scribbler - First Version, Basic
//The colour Keys are as follows:
//Z=Black
//X=Red
//C=Blue
//V=Yellow
//B=Green
//Enjoy X_X

void setup() {
 size(150, 100);
 noStroke();
}

void draw() {
 if(mousePressed) {
   ellipse(mouseX, mouseY, 5 , 5);
 }
}

void keyPressed()
{
 if ( key == 'z' ) {
   fill(0, 0, 0);
 }
 if (key == 'x' ) {
   fill(255, 0, 0);
 }
   if (key == 'c' ) {
   fill(0, 0, 255);
   }
     if (key == 'v' ) {
   fill(255, 255, 0);
     }
     if(key == 'b' ) {
       fill(38, 127, 0);
     }
}



This is my first attempt at making a drawing application. This is just a drawing application. Right now it's just stripped down to its core idea. The Scribbler 1.0 will have a save button, different draw sizes, more colours and way more interactvity.

Remember that i've just started proccessing so critisise accordingly.
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #1 - Mar 27th, 2009, 9:23pm
 
Keep up the good work.

One note:
yellow is:

    if (key == 'v' ) { //yellow
  fill(255, 255, 0);
    }

-------------------
Your yellow was a light green.  Roll Eyes
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #2 - Mar 27th, 2009, 11:23pm
 
I drew you a picture.

http://img13.imageshack.us/img13/5402/diabetic.tif

It appears to be a surprised out-of-work clown.
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #3 - Mar 28th, 2009, 1:48pm
 
try to associate different shapes to each case of the key and mouse pressure.. like if you had different sketches
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #4 - Mar 28th, 2009, 3:06pm
 
Gordon_Jones wrote on Mar 27th, 2009, 9:23pm:
Keep up the good work.

One note:
yellow is:

    if (key == 'v' ) { //yellow
  fill(255, 255, 0);
    }

-------------------
Your yellow was a light green.  Roll Eyes


Forgot to add the other 255. Thankyou.

I will try and add alot more tools and things to it. I just wanted to exhibit the stripped down version of it.
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #5 - Mar 29th, 2009, 1:53pm
 
Let's make a processing kid pix, the way kid pix used to be.

Who's with me?
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #6 - Mar 31st, 2009, 12:16am
 
i don't get it.

What is a 'kid pix''?
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #7 - Apr 1st, 2009, 6:47am
 
Quote:
[font=Lucida Sans]
//Diabetic Rabbits Scribbler - First Version, Basic
This is my first attempt at making a drawing application.
Remember that i've just started proccessing so critisise accordingly.


No criticism at all. It was lots of fun....

I would like for you to consider all the if statements....bet that was confusing for you to write.

To simplify all that try the switch()/case statements.
Code:

 switch(key){
   case 'x':
   case 'X'://black
     fill(0, 0, 0);
     break;
   case 'r':
   case 'R': //red
     fill(255, 0, 0);
     break;
   case 'b':
   case 'B'://blue
     fill(0, 0, 255);
     break;
   case 'y':
   case 'Y'://yellow
     fill(255, 255, 0);
     break;
   case 'g':
   case 'G'://green
     fill(38, 127, 0);
     break;
   case 'w':
   case 'W'://white
     fill(255, 255, 255);
     break;
 }

I changed your choice of letters for the colors....I'm English speaking and it helped me to pick the right colors.

You could take the key to upper/lower case and only use one case per key press instead of using two cases per choice.

Hope you continue with this and make a nice drawing program.

So, yeah, what's "kid pix"?
Re: Diabeticrabbit's Scribbler - First Version, Basic
Reply #8 - Apr 8th, 2009, 5:53pm
 
kid pix is a program for drawing and such, you could make patterns and all these other amazing things. i used to just experiment all the time with it when i was younger. i consider it a classic  Grin

nice work diabeticrabbit, its a great base for modifying upon.
Page Index Toggle Pages: 1