- Create new project
- Java
- Next
- Next
- Finish
- File > Project Structure
- Libraries > +
- /Applications/Processing.app/Contents/Java/core.jar
- OK
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
/** | |
* Simple Swarmer 2 | |
* | |
*/ | |
int numAttractors = 256; | |
int numMasses = 8192*2; | |
float maxSpeed = 4.0f; | |
float maxAccel = 1.0f; |
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/bash | |
# One week series. Slicing images from top to bottom over time. | |
# http://cameronbrowning.com/content/one-week-series/ | |
# Originally adapted from earlier work at: | |
# http://cameronbrowning.com/content/creating-slit-scan-images-from-quicktime-movies-with-ffmpeg-on-mac-os-x/ | |
# Step 1: loop through 10,078 images | |
for i in `seq -f "%05g" 1 10078`; | |
do | |
# subtract 1 from the counter for the y offset |
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/bash | |
# rename all of the JPG images in this folder to sequence numbers. | |
a=1 | |
for i in *.jpg; do | |
new=$(printf "%05d.jpg" "$a") #04 pad to length of 5 digits | |
mv -- "$i" "$new" | |
let a=a+1 | |
done |
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
import processing.core.PApplet; | |
import processing.core.PGraphics; | |
/** | |
* Created by cbrowning on 2/17/16. | |
*/ | |
public class ProcessingExample extends PApplet{ | |
PGraphics tile; | |
int tileWidth; |
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
import processing.core.PApplet; | |
import processing.core.PGraphics; | |
/** | |
* Created by cbrowning on 2/17/16. | |
*/ | |
//public class ProcessingExample extends PApplet{ | |
PGraphics tile; | |
int tileWidth; |
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
import processing.core.PApplet; | |
import processing.core.PGraphics; | |
/** | |
* Created by cbrowning on 2/28/16. | |
*/ | |
PGraphics tile; | |
int tileWidth; | |
int tileHeight; |
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
Bezier b; | |
ArrayList<DraggablePoint> pts; | |
boolean isDragging; | |
int dragID; | |
float slope; | |
float t; | |
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
color[] colors = {#395273, | |
#405B73, | |
#F2EDA0, | |
#D9A171, | |
#40211E, | |
#40211E}; | |
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[] colors = { #395273, | |
#395273, | |
#F2EDA0, | |
#D9A171, | |
#395273, | |
#395273, | |
#40211E, | |
#395273, | |
#40211E, |