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

#1 2011-09-10 15:06:21

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

scratch.pde - Making it even easier to work with Processing!

I'm not using Scratch as much anymore in favor of things like Processing. I loved Scratch, though!

Anyways, I wanted to make it even easier to program in Processing. And I thought: "Processing is also designed in a 'visual context', object-oriented, and simple. Why not!"

Ant the next words that came into my head were "processing library!"

The idea is simple: use the familiar blocks in Scratch, but just in a different way. Instead of dragging out "move (10) steps", you could write moveSteps(10); . Or: block("move 10 steps"); . Getitgotitgood.

//Stats
Right now I haven't started, but will be in a few minutes.

Object awesomeness = new Sprite("Scratch" + "Processing");


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

 

#2 2011-09-10 17:14:25

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: scratch.pde - Making it even easier to work with Processing!

An interesting project. What language would you be programming it in and what's your aim? Easier to use than Scratch? Faster? More powerful?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-09-10 17:18:14

cuddlycub
Scratcher
Registered: 2010-12-16
Posts: 100+

Re: scratch.pde - Making it even easier to work with Processing!

sparks wrote:

An interesting project. What language would you be programming it in and what's your aim? Easier to use than Scratch? Faster? More powerful?

The Processing he is talking about. I think this is all about that language, not really scratch. Just using scratch-like commands.


http://i.imgur.com/aowqZAu.png

Offline

 

#4 2011-09-13 15:55:12

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

Re: scratch.pde - Making it even easier to work with Processing!

sparks wrote:

An interesting project. What language would you be programming it in and what's your aim? Easier to use than Scratch? Faster? More powerful?

Processing is about a million times faster than scratch. It definitely won't be easier to program in, but could be used to switch from Scratch to Java/Processing.

For an example of the speed thing, I made this thing that won't work in *cough* IE *cough* :  Node Garden Remix (originally by allonestring)


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

 

#5 2011-09-13 16:22:35

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

Re: scratch.pde - Making it even easier to work with Processing!

Ok, having trouble already!

What's wrong with this code? (Forget the "main" method, Processing doesn't use it.)

Code:

Scratch s = new Scratch();
int variableTest = s.makeVariable("Testing 123");

class Scratch {
  ArrayList variables;
  
  Scratch() {
    variables = new ArrayList();
  }
  
  Object makeVariable(String name) {
    variables.add(name);
    return variables.get(variables.size());
  }
}

Last edited by scratchisthebest (2011-09-13 16:23:18)


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

 

#6 2011-09-14 17:13:39

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

Re: scratch.pde - Making it even easier to work with Processing!

bumpity bump.


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