Skip to content

Instantly share code, notes, and snippets.

View drart's full-sized avatar

Adam Tindale drart

View GitHub Profile
@drart
drart / petchakutcha.pde
Created September 19, 2011 15:29
Processing sketch to present a Petcha Kutcha for images 1.jpg to 20.jpg
/*
* Adam R. Tindale 2010
* http://www.adamtindale.com
*
* Create a data folder with your 1-20.jpg files to get it working.
*/
PImage[] images = new PImage[20];
int counter = 0;
int loadtime;
@drart
drart / generative51art.maxpat
Created September 19, 2011 17:12
A Max/MSP patch for mixing sine waves forever.
{
"patcher" : {
"fileversion" : 1,
"rect" : [ 249.0, 44.0, 955.0, 593.0 ],
"bglocked" : 0,
"defrect" : [ 249.0, 44.0, 955.0, 593.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
@drart
drart / Favicon.pde
Created November 7, 2011 04:23
Favicon made with Processing.org
size(32, 32);
smooth();
background(0);
strokeWeight(2);
stroke(255);
line(width/2, height/2, width*.75, height);
line(width/2, height/2, width*0.25, height);
noFill();
ellipse(width/2, height/2, width*0.6, height*0.6);
save("favicon.png");
@drart
drart / C4Touch2Video.m
Last active December 12, 2015 00:58
Create a new C4Movie for every touch on screen. (To a maximum of 4 videos, as per hardware limitation)
//
// C4WorkSpace.m
// Touch2Video
//
// Created by Adam Tindale on 2013-01-30.
// 2013 Adam Tindale. CC Attribution - http://creativecommons.org/licenses/by/3.0/
//
#import "C4WorkSpace.h"
@drart
drart / C4Workspace.m
Created June 1, 2013 20:23
Using a C4Slider to modulate the number of points in a C4Shape.
//
// C4WorkSpace.m
// ShapeSlider
//
// Created by Adam Tindale on 2013-06-01.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace
@drart
drart / C4Workspace.m
Created June 2, 2013 10:53
Every new touch creates a new object that animates across the screen.
//
// C4WorkSpace.m
// Touch2Animation
//
// Created by Adam Tindale on 2013-06-01.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace
//
// C4WorkSpace.m
// Swipes Tutorial
//
// Created by Travis Kirton.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@drart
drart / C4Workspace.m
Created June 2, 2013 19:15
Media Player example.
//
// C4WorkSpace.m
// MediaPlayr
//
// Created by Adam Tindale on 2013-06-02.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace
@drart
drart / C4Workspace.m
Created June 3, 2013 00:09
Image swapping example improved.
//
// C4Workspace.h
// Examples
//
// Created by Travis Kirton
// Modified by Adam Tindale
//
#import "C4Workspace.h"
@drart
drart / gist:5730329
Created June 7, 2013 15:57
Arduino Code for Luminato Project. (V0.001)
/*****************
* Example: ATEM Basic Control
* Connects to the Atem Switcher and outputs changes to Preview and Program on the Serial monitor (at 9600 baud)
* Uses digital inputs 2 and 3 (active High) to select input 1 and 2 on Preview Bus
/*****************
* TO MAKE THIS EXAMPLE WORK:
* - You must have an Arduino with Ethernet Shield (or compatible such as "Arduino Ethernet", http://arduino.cc/en/Main/ArduinoBoardEthernet)
* - You must have an Atem Switcher connected to the same network as the Arduino - and you should have it working with the desktop software
* - You must make specific set ups in the below lines where the comment "// SETUP" is found!
*/