This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-29 12:21:53

blazerv82
Scratcher
Registered: 2008-03-20
Posts: 1000+

Processing Topic

Processing is a really cool programming language
It's based on java, but it's a lot more simple than it

Then there's ProcessingJS, a version of processing built in javascript. You can use both javascript and processing, and it shows the sketch in an html5 canvas element, which i would suggest using if you want to put the sketch on the web.

discuss this language here
also, veggie is the one who showed me this, thanks to him, i've been able to make some cool things with this (thanks again veggie)

Last edited by blazerv82 (2012-01-29 12:22:29)


Pretty Hate Machine, Broken, Closer To God, The Downward Spiral, Further Down The Spiral, The Perfect Drug, The Fragile, And All That Could Have Been, With Teeth, Year Zero, Y34RZ3R0R3M1X3D, Ghosts I-IV, The Slip, Pretty Hate Machine 2010

Offline

 

#2 2012-01-29 12:29:48

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

Yer welcome! The coolest thing I've done with Processing(.js) is porting my classic Scratch game Gammy.


Posts: 20000 - Show all posts

Offline

 

#3 2012-01-29 12:41:52

puppetadventurer
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: Processing Topic

veggieman001 wrote:

Yer welcome! The coolest thing I've done with Processing(.js) is porting my classic Scratch game Gammy.

I got 309!!!


3

Offline

 

#4 2012-01-29 12:44:22

Freakish
Scratcher
Registered: 2011-10-25
Posts: 1000+

Re: Processing Topic

puppetadventurer wrote:

veggieman001 wrote:

Yer welcome! The coolest thing I've done with Processing(.js) is porting my classic Scratch game Gammy.

I got 309!!!

323!!!


http://i.imgur.com/y3RBV.jpg

Offline

 

#5 2012-01-29 12:45:31

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

puppetadventurer wrote:

veggieman001 wrote:

Yer welcome! The coolest thing I've done with Processing(.js) is porting my classic Scratch game Gammy.

I got 309!!!

Cool. I got 335.


Posts: 20000 - Show all posts

Offline

 

#6 2012-01-29 12:46:44

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Processing Topic

puppetadventurer wrote:

veggieman001 wrote:

Yer welcome! The coolest thing I've done with Processing(.js) is porting my classic Scratch game Gammy.

I got 309!!!

318  tongue


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#7 2012-01-29 13:24:42

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Processing Topic

366! Wow! I beat Veggie!

And about Processing, I've found that if a language is simplified, it becomes less powerful. Still, this is cool.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#8 2012-01-29 13:55:04

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

#9 2012-01-29 14:12:46

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

Although it's pretty simplified, it's still really powerful. And you can call Java/Javascript functions with it as well for more complicated things.


Posts: 20000 - Show all posts

Offline

 

#10 2012-01-30 18:31:08

blazerv82
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Processing Topic

my website now has a painting program available on the main page
i plan on making the entire website a processing sketch
because why not

bump also


Pretty Hate Machine, Broken, Closer To God, The Downward Spiral, Further Down The Spiral, The Perfect Drug, The Fragile, And All That Could Have Been, With Teeth, Year Zero, Y34RZ3R0R3M1X3D, Ghosts I-IV, The Slip, Pretty Hate Machine 2010

Offline

 

#11 2012-01-30 18:39:48

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

blazerv82 wrote:

my website now has a painting program available on the main page
i plan on making the entire website a processing sketch
because why not

bump also

Haha that'll be great


Posts: 20000 - Show all posts

Offline

 

#12 2012-01-30 22:08:31

aqualung
Scratcher
Registered: 2011-07-03
Posts: 100+

Re: Processing Topic

i saw your website from pallurongo!!!


http://i40.tinypic.com/ajuy40.jpg

Offline

 

#13 2012-01-30 22:13:06

blazerv82
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Processing Topic

aqualung wrote:

i saw your website from pallurongo!!!

so did i !!!!!


Pretty Hate Machine, Broken, Closer To God, The Downward Spiral, Further Down The Spiral, The Perfect Drug, The Fragile, And All That Could Have Been, With Teeth, Year Zero, Y34RZ3R0R3M1X3D, Ghosts I-IV, The Slip, Pretty Hate Machine 2010

Offline

 

#14 2012-01-31 20:09:37

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

Oh yay! A p5 topic! So I don't have to make one!  big_smile

EDIT: here's a little treat: just make sure to take out the &
int i=-2,j=1;size(500,500);background(255);smooth();while(j<3000){while(i++<j/2){stroke((i<&<j)*2000);rotate(i%j);line(width/2,height/2,i/2,i/2);}i-=5;j++;}

Last edited by scratchisthebest (2012-01-31 20:11:13)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#15 2012-01-31 20:16:51

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

scratchisthebest wrote:

Oh yay! A p5 topic! So I don't have to make one!  big_smile

EDIT: here's a little treat: just make sure to take out the &
int i=-2,j=1;size(500,500);background(255);smooth();while(j<3000){while(i++<j/2){stroke((i<&<j)*2000);rotate(i%j);line(width/2,height/2,i/2,i/2);}i-=5;j++;}

Haha that's cool.


Posts: 20000 - Show all posts

Offline

 

#16 2012-01-31 20:38:31

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: Processing Topic

Sounds like something slightly more advanced than Scratch, but not too complicated, either.

I'm downloading this.


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#17 2012-01-31 20:48:02

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

It's really a good stepping stone, though I think it requires knowledge of programming outside Scratch. I'm going to be working on porting Scratch to Processing at some point in the next couple weeks, to make the transition better. It'll use Scratch block names with Processing parenthetical syntax, and include collision sensing built in like Scratch does. Once I have a significant portion done, I'll upload it somewhere and make it an open source project.  smile


Posts: 20000 - Show all posts

Offline

 

#18 2012-03-10 08:51:56

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

Look! I found toxiclibs.org! Cool!

If you haz Antidote, you can see the pic. If you don't, click on teh link.

http://i1268.photobucket.com/albums/jj579/scratchisthebest/metaball-2918.png


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#19 2012-03-10 09:57:22

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

Ooh, that's really cool


Posts: 20000 - Show all posts

Offline

 

#20 2012-03-12 16:08:42

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

Shorten this fractal program (to less than or equal to 289 characters) while leaving in all the features to win a cookie.

Code:

int w,j,i,s;PVector b;PVector[]v=new PVector[4];void setup(){size(w=255,w);background(w);for(j=-1;j++<3;)v[j]=new PVector(r(w),r(w));b=v[0];}void draw(){for(i=0;++i<w;){s=r(3);b.x=(b.x+v[s].x)/2;b.y=(b.y+v[s].y)/2;point(b.x,b.y);}if(keyPressed)setup();}int r(int x){return ceil(random(x));}

Last edited by scratchisthebest (2012-03-12 16:11:17)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#21 2012-03-18 08:54:55

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

This might be a bump, because I couldn't find the topic and had to search for it.

The following errors need to be corrected before the message can be posted:
At least 60 seconds have to pass between posts. Please wait a little while and try posting again.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#22 2012-03-31 09:31:51

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

Hey, where'd everyone go?


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#23 2012-03-31 11:09:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Processing Topic

We died


Posts: 20000 - Show all posts

Offline

 

#24 2012-03-31 11:20:36

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Processing Topic

I didn't, I survived >:D

Looks cool. I'll have to download it sometime.

Last edited by RedRocker227 (2012-03-31 11:20:59)


Why

Offline

 

#25 2012-04-10 11:56:58

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Processing Topic

bump

Hey veggie want a code-off?
Here's mine: a musicvisulazation with VIDEOFEEDBACK!  lol

Code:

//Get your mic out, plug it in, and crank up some muzak next to it.
//And be quiet so the mic doesn't pick up you.

import ddf.minim.*;
import ddf.minim.analysis.FFT;

Minim minim;
AudioInput in;
FFT fft;

float vol;
float sc = 0;
void setup() {
  size(500,500);
  
  background(0);
  
  minim = new Minim(this);
  
  in = minim.getLineIn(Minim.STEREO, 512);
  
  fft = new FFT(in.bufferSize(),in.sampleRate());
  
  strokeWeight(20);
  strokeJoin(ROUND);
}

void draw() {
  fft.forward(in.mix);
  
  noStroke();
  fill(0,10);
  rect(0,0,width,height);
  
  pushMatrix();
  translate(width/2,height/2);
  vol += (abs(in.mix.get(0)/2)-vol)*0.05;
  rotate(vol * (sin(frameCount/20f)*70));
  scale(vol*sc);
  image(get(),-width/2,-height/2);
  popMatrix();
  
  float acc = 0;
  colorMode(HSB);
  stroke((frameCount/3)%255,255,255);
  colorMode(RGB);
  noFill();
  beginShape();
  for(int i=0; i < fft.specSize()/12; i++) {
    int x = (int) map(i,0,fft.specSize()/12,0,width);
    vertex(x, height - fft.getBand(i)*(i/1.5));
    
    acc += fft.getBand(i)*(i/1.5);
  }
  vertex(width,height);
  endShape();
  
  
  sc += (acc/4.5-sc)*0.2;
  
  stroke(255,200);
  noFill();
  rect(0,0,width,height);
}

void stop()
{
  in.close();
  
  minim.stop();
  
  super.stop();
}

edit: made code epicer

Last edited by scratchisthebest (2012-04-10 12:18:35)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer