Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Last active December 5, 2021 07:11
Show Gist options
  • Select an option

  • Save n1ckfg/eac583ba6a94ce58209b1061ef0cd01c to your computer and use it in GitHub Desktop.

Select an option

Save n1ckfg/eac583ba6a94ce58209b1061ef0cd01c to your computer and use it in GitHub Desktop.
import peasy.*;
PeasyCam cam;
void setup() {
size(800, 600, P3D);
cam = new PeasyCam(this, 400);
// https://github.com/jdf/peasycam/blob/master/src/peasy/PeasyCam.java
cam.setWheelScale(0.1);
}
void draw() {
background(0);
lights();
sphere(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment