Skip to content

Instantly share code, notes, and snippets.

View matt0rtega's full-sized avatar

Matthew Ortega matt0rtega

View GitHub Profile
I am attesting that this GitHub handle matt0rtega is linked to the Tezos account tz1iqyQ7RKkZy34qfEfWttsp4tfzDv1BURRo for tzprofiles
sig:edsigtoJ6RR9Sq9pVWpFdUshbYXY5ScmWhtCkgLFE2yokdYANuYQtEoGbw5QeEibPL95LKqfESv5vGQcWcnHsgXx5fkRHTTT9Su
PGraphics pg;
// We need to create variables for the width and height we want to use.
int scaleFactor = 2;
int w = 1080 * scaleFactor;
int h = 1920 * scaleFactor;
// In later versions of Processing, you need to use settings if you want to do any operations on the width and height
void settings(){
size(w / 8, h / 8);
in_thread do
live_loop :foo do
cue :tick
sleep 1
end
end
in_thread do
live_loop :foo3 do
with_fx :bitcrusher, bits: rrand(0.1, 5), cutoff: rrand(20, 100) do
// P_3_2_3_01.pde
//
// Generative Gestaltung, ISBN: 978-3-87439-759-9
// First Edition, Hermann Schmidt, Mainz, 2009
// Hartmut Bohnacker, Benedikt Gross, Julia Laub, Claudius Lazzeroni
// Copyright 2009 Hartmut Bohnacker, Benedikt Gross, Julia Laub, Claudius Lazzeroni
//
// http://www.generative-gestaltung.de
//
// Licensed under the Apache License, Version 2.0 (the "License");
void setup() {
size(640, 360);
}
void draw() {
background(0);
// Your sketch here
}
@matt0rtega
matt0rtega / .js
Created March 2, 2017 20:18
Out of Office Sketch
var x = 0;
var y = 0;
var a = 0;
var b = 0;
function setup() {
createCanvas(windowWidth,windowHeight);
colorMode(HSB);
background(255, 0 , 255);
smooth();
@matt0rtega
matt0rtega / gist:62dbd7f34ddd44291ca9f027df79bc0f
Created June 23, 2016 06:54
saveVector(); from Joshua Davis
void saveVector() {
PGraphics tmp = null;
tmp = beginRecord(PDF, "render_###.pdf");
if (tmp == null) {
H.drawStage();
} else {
H.stage().paintAll(tmp, false, 1); // PGraphics, uses3D, alpha
}