This file contains 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
#pragma once | |
#include "ofMain.h" | |
class testApp : public ofBaseApp{ | |
public: | |
int randomCounts[20]; | |
void setup(); | |
void update(); | |
void draw(); |
This file contains 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
#include "testApp.h" | |
#include <ofGraphics.h> | |
void testApp::setup(){ | |
ofSetFrameRate(60); | |
ofSetBackgroundAuto(false); | |
ofEnableAlphaBlending(); | |
ofEnableSmoothing(); | |
ofBackground(255); |
This file contains 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
#include "testApp.h" | |
#include <ofGraphics.h> | |
void testApp::setup(){ | |
ofSetFrameRate(60); | |
ofSetBackgroundAuto(false); | |
ofEnableAlphaBlending(); | |
ofEnableSmoothing(); | |
ofBackground(255); |
This file contains 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
#include "testApp.h" | |
#include <ofGraphics.h> | |
void testApp::setup(){ | |
ofSetFrameRate(60); | |
ofEnableSmoothing(); | |
ofBackground(255); | |
ofSetColor(0); | |
f = 0; |
This file contains 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
# just convert and compress, strip EXIF etc | |
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% original.jpg new.jpg | |
# resize | |
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% -resize 940x480 original.jpg new.jpg |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" |
This file contains 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
require 'sass' | |
require 'pathname' | |
require 'compass' | |
require 'compass/exec' | |
module Jekyll | |
class CompassGenerator < Generator | |
safe true | |
def generate(site) | |
Compass::Exec::SubCommandUI.new(%w(compile)).run! |
This file contains 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
<?php | |
/** | |
* Weird behaviour when nesting Generators | |
*/ | |
/** | |
* Turn some items into a Generator | |
* @param array ...$items | |
* @return Generator | |
*/ |
This file contains 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 hotPink | |
scale 2 | |
shape | |
vert -1,-1 | |
vert -1,1 | |
vert 1,0 | |
end | |
move 0,0,0.01 |
This file contains 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
scale 0.7 | |
i: 10.5 | |
do 36 times | |
rotate 10 | |
i: i + 0.01 | |
particle 0.1,0,0,0.4 * noise(i) | |
push | |
scale 0.4 | |
color hotPink |