Skip to content

Instantly share code, notes, and snippets.

View slambert's full-sized avatar

Steve Lambert slambert

View GitHub Profile
@slambert
slambert / basic sketch with states.pde
Created October 27, 2015 16:04
This one works with keypressed states
/* A sketch that has states
Steve Lambert October 27, 2015
v.01
Note: Add your own images
*/
int state;
@slambert
slambert / Mathilde no echo.pde
Last active October 27, 2015 16:01
Sample from class of getting sounds to not echo with flags
int x = 0;
int speed = 5;
PImage img; //this is the name of the pictures in this file
PImage img1;
PImage img2;
PImage img3;
PImage img4;
PImage img5;
PImage bg;
@slambert
slambert / Slideshow Sketch.pde
Last active October 27, 2015 16:07
Sample for class of a time based slideshow
/* Slideshow Sketch
Steve Lambert October 27, 2015
v.01
Note: Add your own images in a data folder to make it work
*/
float time;
float currentTime;
{
"added_words":
[
"Duncombe",
"Eyebeam"
],
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
@slambert
slambert / sublime text default prefences.json
Created October 14, 2015 21:47
I got this from somewhere else I don't remember.
// Place your settings in the file "User/Preferences.sublime-settings", which
// overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overridden in the platform
@slambert
slambert / Countdown Timer for Introductions.pde
Last active October 8, 2015 12:27
A timer to let people know how long they have talked and when to wrap it up.
/*
Version .03
A timer to show people how long they have talked.
## 2015-10-08 14.27.11
- fix last bit of red?
*/
// Variables
int time;
@slambert
slambert / Bouncing Ball Object and Class.pde
Created October 6, 2015 15:29
A sketch thet uses objects and classes with two bouncing balls
// A sketch thet uses objects and classes with two bouncing balls
// Steve Lambert
// declare objects
Ball ball1;
Ball ball2;
// initialize variables
float gravity = 0.1; // gravity!
@slambert
slambert / Robot with Red Eyes with functions.pde
Created September 29, 2015 18:12
This Processing sketch is an example of one way to use functions.
/*
Robot with Red Eyes with functions
Steve Lambert
Originally written sometime in 2012
* * *
This Processing Sketch is an example of one way to use functions.
*/
// Notice I have declared no global variables - I don't need them!
@slambert
slambert / centipede.pde
Created September 23, 2015 14:18
Example from Programming for Visual Artists class 2015-09-22
// Centipede
// Steve Lambert
// September 23, 2015
// v0.1
int xPos = 15; // global variable
float greg = 15; // initialized at 15, so it shows up where I want it the first time
void setup() {
size(500,500);
@slambert
slambert / Super Stunning Psychedelic Booleans v0.2.pde
Created September 15, 2015 16:41
Done with an IF/ELSE statement
/*
Steve Lambert
Super Stunning Psychedelic Booleans
September 15, 2015 v0.2
Done with an IF/ELSE statement
*/
void setup(){
size(800,600); // how big it is, you know this.
println("Welcome to Steve's Psychedelic Light Show");