processing-p5-convert

source code translator that converts Processing Java code to p5.js Javascript code

Home Minimal_example Command_line Notes About Project

(tests) hello bounce grid bounce_with_class cat hello_font hello_sound explode bounce_vectors hello_3d

(live conversion tests) phyllotaxis dandelin dogfooding

(student project tests) cow_game cross_the_road dinosaur_game greenhouse_game

hello

Transformations:

Converted p5.js:

//
// hello
//
function setup() {
    createCanvas(400, 400);
}
function draw() {
    background(0);
    fill("#00ff00"); // Processing color literal
    ellipse(200, 200, 100, 100);
}

Original Processing:

//
// hello
//


void setup()
{
    size(400, 400);
}

void draw()
{
    background(0);
    fill(#00ff00); // Processing color literal
    ellipse(200, 200, 100, 100);
}

home