Skip to content

Instantly share code, notes, and snippets.

Avatar

Casey Reas REAS

View GitHub Profile
View Image_Explode.py
"""
Explode
by Daniel Shiffman.
(Rewritten in Python by Jonathan Feinberg.)
Mouse horizontal location controls breaking apart of image and
Maps pixels from a 2D image into 3D space. Pixel brightness controls
translation along z axis.
"""
@REAS
REAS / RGB_textures.pde
Created May 20, 2014
Stochastic RGB textures
View RGB_textures.pde
import processing.pdf.*;
color[] rgb = {
#FF0000, #00FF00, #0000FF
};
//SPACING BETWEEN LINES
float spMin = 2;
float spMax = 4;
float strokeWidth = 0.5;
@REAS
REAS / PDF Example
Last active Aug 29, 2015
PDF Example for the Buckeyes
View PDF Example
import processing.pdf.*;
void setup() {
size(600, 600);
//frameRate(1);
}
void draw() {
beginRecord(PDF, "Ex_07_#######.pdf");
@REAS
REAS / EmbeddedLoops
Created Sep 4, 2014
Embedded Loops for the Buckeyes
View EmbeddedLoops
size(600, 600);
background(255);
strokeWeight(8);
strokeCap(SQUARE);
int offsetRange = 100;
int rowHeight = 10;
for (int y = 0; y < 600; y += rowHeight) {
View gist:b08298448524c4d437a4
import processing.pdf.*;
boolean recordFrame = false;
float x;
float diameter;
void setup() {
size(400, 600);
x = random(0, width);
@REAS
REAS / HammerField.pde
Last active Dec 14, 2015
Example code for Print, Paper, Process: Marbling and Technology at the Hammer Museum
View HammerField.pde
/**
PRINT PAPER PROCESS: MARBLING AND TECHNOLOGY
23 FEB 2013, HAMMER MUSEUM
UCLA ARTS SOFTWARE STUDIO <http://software.arts.ucla.edu>
(Based on code in Dan Shiffman's Nature of Code <http://natureofcode.com/>)
Operate the program with the mouse, keyboard, or modify the code.
Click to draw a new field
View HelloProcessing.pde
/*
PROCESSINGJS.COM HEADER ANIMATION
MIT License - F1lT3R/Hyper-Metrix
Modifed by Casey Reas, 7 Nov 2013
Native Processing Compatible
*/
// Set number of circles
int count = 90;
// Set maximum and minimum circle size
View Grid_textures_01.pde
int gap = 20;
void setup() {
size(1000, 1000);
strokeWeight(4);
strokeCap(SQUARE);
frameRate(0.5);
}
void draw() {
View gist:dd67dafe5b26fe35026a55e2e74348d5
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture video;
OpenCV opencv;
void setup() {
size(640, 480);
video = new Capture(this, width, height);
@REAS
REAS / TXT
Last active Feb 1, 2018
Big Picture, SCI-Arc VS 4201 01, Spring 2018
View TXT
Big Picture
SCI-Arc VS 4201 01
Spring 2018
Instructors
Ryan Tyler Martinez
Casey Reas
Course Meetings: Thursdays 10:00-1:00PM, 2:00-5:00pm PC Lab North