This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ControlP5 Knob - modified by Steve | |
* | |
* | |
* find a list of public methods available for the Knob Controller | |
* at the bottom of this sketch. | |
* | |
* by Andreas Schlegel, 2012 | |
* www.sojamo.de/libraries/controlp5 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float radius=200; | |
int numPoints=4; | |
void setup(){ | |
size(500,500); | |
} | |
void draw () { | |
if(frameCount % 15 == 1){ | |
numPoints = frameCount % 270; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Shuffler Bash Script | |
# Steve Lambert 2018-04-16 | |
# This script shuffles the lines of a text file, and then shows | |
# a line from that file, one by one, each time it's run. | |
# To use this script, create a config file at ~/.shufflerVar | |
# This will hold variables that the script can call each time | |
# it's run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
/ Steve Lambert February 14, 2018 | |
/ Valentimes! | |
/ for and while loop demo v1 | |
*/ | |
color romanceRed = color(196,10,10); | |
color cupidPink = color(255,129,129); | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* If/then, click and drag, variable, || etc v0.1 | |
Steve Lambert February 7, 2018 | |
todo: | |
gravity | |
*/ | |
color darkBlue = color(34, 83, 120); | |
color medBlue = color(22, 149, 163); | |
color lightBlue = color(172, 240, 242); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Color Palette example sketch | |
includes examples of: | |
boolean variables | |
if/else | |
mousepressed | |
relational operators (> < == !--) | |
Steve Lambert February 7, 2018 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Animated with no library demo | |
Steve Lambert April 26, 2017 | |
*/ | |
// https://processing.org/examples/sequential.html | |
int numFrames = 4; // The number of frames in the animation | |
int currentFrame = 0; | |
PImage[] images = new PImage[numFrames]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Bad Word Checker | |
Tests a word against a list of words | |
Better put: tests a string against an array of strings | |
Steve Lambert April 26, 2017 | |
*/ | |
// VARIABLES | |
String filename = "wordlist.txt"; // file with words to check against | |
String[] lines; // array of the lines in the file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Very expensive network connection checker | |
Steve Lambert 2017-04-26 | |
*/ | |
void setup() { | |
size(250,250); | |
smooth(); | |
} // end setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
XML exploration v.01 | |
Steve Lambert | |
April 20, 2017 | |
This is a very short program that simply pulls news headlines from the NYT and puts them | |
into an array. | |
I'd never done this before yesterday. Granted, I had some previous knowledge of RSS/XML, | |
but I decided just to see how far I could get in 15 minutes of research and experimenting |