package com.d2fn.passage.sketches;

import org.measures.passage.Sketch;

/**
 * TestSketch
 * @author Dietrich Featherston
 */
public class TestSketch extends Sketch {

    @Override
    public void setup() {
        initSize(P2D);
        printenv();
    }

    @Override
    public void renderFrame() {
        background(0);
        colorMode(RGB, 255);
        stroke(100, 100, 100);
        line(0, 0, width, height);
        colorMode(HSB, 360);
        fill(frameCount%360, 360, 360);
        ellipse(mouseX, mouseY, 10, 20);
    }
}

@@ -64,16 +64,47 @@
 .Sketch;
+%0Aimport processing.core.PImage;
 %0A%0A/**%0A *
@@ -193,16 +193,33 @@
 etch %7B%0A%0A
+    PImage img;%0A%0A
     @Ove
@@ -285,122 +285,340 @@
     
-printenv();%0A    %7D%0A%0A    @Override%0A    public void renderFrame() %7B%0A        background(0);%0A        colorMode(RGB, 255
+colorMode(RGB, 255);%0A        img = loadImage(%22raster.png%22);%0A        img.resize(img.width/3, img.height/3);%0A        printenv();%0A    %7D%0A%0A    @Override%0A    public void renderFrame() %7B%0A        background(0);%0A        pushMatrix();%0A        translate(width/2-img.width/2, height/2-img.height/2);%0A        image(img, 0, 0);%0A        popMatrix(
 );%0A 
@@ -631,18 +631,18 @@
  stroke(
-10
+24
 0, 100, 

test resource loading in test sketch