Skip to content

Instantly share code, notes, and snippets.

Avatar

Casey Reas REAS

View GitHub Profile
@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 / WaveWorm.pde
Last active Sep 27, 2020
Rainbow software simulation of mechanical sine wave machine, written at the Exploratorium
View WaveWorm.pde
// I think there's a bug in here
float magnitude = 0;
float baseAngle = 0;
int lineSpacer = 4;
int yOffset = 80;
float cx;
float cy;
float newcx;
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.
"""
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
@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