Skip to content

Instantly share code, notes, and snippets.

@tsulej
tsulej / noise3d.pde
Last active February 8, 2018 10:40
noise3d sculptures generator
// Noise3d Generator
// generateme.tumblr.com
// setup below
// - click to change object
// - move mouse to rotate
// - press space to save (image and obj file)
// - press + to zoom in
// - press - to zoom out
float grid = 50;
ArrayList<Triangle> triangles = new ArrayList<Triangle>();
void setup() {
size(960, 540);
colorMode(HSB, 360, 100, 100, 100);
background(0, 0, 100);
for (float y= 0; y <= height+grid; y += grid) {
for (float x= 0; x <= width; x += grid) {
int r = int(random(1, 3));
for (int i = 0; i < r; i++) {
float angleStep;
Motif myMotif;
int numH = 16;//NUMBER OF COLUMNS
int numV = 12; //NUMBER OF ROWS
float res = 100;
int timer;
ArrayList<Type> types = new ArrayList<Type>();
PFont font;
void setup() {
size(960, 540);
colorMode(HSB, 360, 100, 100);
noStroke();
fill(0, 0, 0);
font = createFont("System San Francisco Display Bold.ttf", 64);
textAlign(CENTER,CENTER);
String str = "TYPE FOUNTAIN";
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@kazad
kazad / fourier.html
Created June 25, 2014 19:00
BetterExplained Fourier Example
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script src="//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<!--
TODO: