Skip to content

Instantly share code, notes, and snippets.

@antiboredom
antiboredom / index.html
Created December 15, 2014 16:36
A simple example showing how to save animated gifs from p5.js sketches, using https://github.com/jnordberg/gif.js
<html>
<head>
<script src="gif.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/p5.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/addons/p5.dom.js"></script>
<script src="sketch.js"></script>
</head>
<body>
<p>First, allow camera access.<p><p>Then click once to start recording, and another time finish recording and make a gif.</p>
</body>
@antiboredom
antiboredom / sun.pde
Created September 8, 2013 22:38
Sun sketch for ICM week 1
int rays = 24;
void setup() {
size(640, 460);
colorMode(HSB, 100, 100, 100, 100);
noStroke();
drawSun();
}
void draw() {}