Skip to content

Instantly share code, notes, and snippets.

@Hedva
Hedva / eindopdracht.pde
Last active December 25, 2015 19:09
Processing Eindopdracht
String lines []; //Een string om het externe bestand in te laden
String list []; //Een lijst om de individuele waarde van de lines array in te laden. Dit wordt gebruikt om de eerste y waarde te bepalen voor de lijnen/polygonen
String list2 []; //Nog een lijst om andere individuele waarden van de lines array in te stoppen. Dit word uiteindelijk gebruikt om de 2e y waarde te bepalen van de lijnen/poygonen
int templijn = 25; //Aantal pixels
int tempstappen = 5; //Aantal stappen tussen de temparatuur
int pagewidth = 1000; //Breedte van de pagina
int pageheight = 450; //Hoogte van de pagina
int graphheight = pageheight-(templijn*2); //De hoogte van de grafiek (om ervoor te zorgen dat de tekst eronder / de dagen zichtbaar zijn
void setup(){
@Hedva
Hedva / opdracht1.pde
Created October 22, 2013 12:58
Generatieve Visualisatie: Opdracht 1
import processing.pdf.*;
void setup(){
size(500, 500, PDF, "icecream_j_van_rheenen.pdf");
};
void draw(){
ellipse(250, 150, 98, 98);
triangle(250, 400, 200, 150, 300, 150);
@Hedva
Hedva / opdracht2.pde
Last active December 26, 2015 05:19
Generatieve Visualisatie: Opdracht 2
int wWidth = 500;
int wHeight = 500;
int lineWidth = 10;
int space = 50;
int color_i = 0;
color[] set1 = {color(255,0,0), color(0,0,255), color(0,255,0)};
color[] set2 = {color(153,51,204), color(255,102,0), color(0,204,204)};
color[] set3 = {color(204,153,255), color(255,204,102), color(204,255,255)};
void setup(){
@Hedva
Hedva / opdracht3.pde
Created October 22, 2013 13:01
Generatieve Visualisatie: Opdracht 3
int wWidth = 600;
int wHeight = 600;
int blocks = int(pow(2,2));
int blockRows = int(sqrt(blocks));
int blockSize = wWidth/blockRows;
int inceptionBlocks = 2;
int inceptionBlockSize = (wWidth/blockRows)/2;
void setup(){
@Hedva
Hedva / opdracht4.pde
Last active December 26, 2015 05:19
Generatieve Visualisatie: Opdracht 4
int wWidth = 600;
int wHeight = 600;
int aantal = 5;
int circleSize = 70;
int[] numbers1 = {223, 0, 29, 76, 60, 69, 2, 41, 46, 54};
int[] numbers2 = {3, 7, 43, 45, 23, 76, 88, 227, 354, 22, 56, 220};
int c1 = floor(random(0, numbers1.length));
int c2 = floor(random(0, numbers2.length));
float color1 = numbers1[c1];
float color2 = numbers2[c2];
@Hedva
Hedva / opdracht5.pde
Created October 22, 2013 13:04
Generatieve Visualisatie: Opdracht 5
import processing.pdf.*;
int wWidth = 1122;
int wHeight = 1587;
int rand = 32;
int aantal = 3;
int size = 1058;
float colorset = random(0, 360);
void setup(){
@Hedva
Hedva / index.html
Last active December 26, 2015 05:29
D3: Opdracht 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Warming up</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>
@Hedva
Hedva / index.html
Last active December 26, 2015 05:29
D3: Opdracht 2
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>OMG Particles!</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<style type="text/css">
body {
background: #222;
@Hedva
Hedva / data.tsv
Last active December 26, 2015 05:28
D3: Opdracht 3
soort apparaat count
Koffie Rechts 134
Espresso Rechts 88
Cappuccino Rechts 31
Warmechoco Rechts 4
Warmwater Rechts 2
Overig Rechts 20
Koffie Links 63
Espresso Links 36
Cappuccino Links 31
@Hedva
Hedva / data.tsv
Last active December 26, 2015 05:29
D3: Opdracht 4
group date value
Onbekend 2002-01 19
Onbekend 2003-01 20
Onbekend 2004-01 17
Onbekend 2005-01 23
Onbekend 2006-01 20
Onbekend 2007-01 7
Onbekend 2008-01 7
Onbekend 2009-01 7
Onbekend 2010-01 3