Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 492 Bytes
using UnityEngine;
using System.Collections;
using uP5;
public class Primitives : uProcessing {
protected override void setup() {
size(512 * displayAspectW, 512, P2D);
stroke(0, 128, 64);
strokeWeight(20);
fill(0, 255, 128);
rect(20, 20, 300, 400);
noStroke();
fill(255);
ellipse(350, 350, 300, 300);
noLoop();
}
protected override void draw() {
}
protected override void onKeyTyped() {
if(key == ESC || key == 'q') { loadScene("Menu"); }
}
}