Skip to content

Instantly share code, notes, and snippets.

View KrabCode's full-sized avatar

Jakub Rak KrabCode

  • Prague, Czech Republic
  • 10:20 (UTC +02:00)
View GitHub Profile
float octaves;
void setup() {
size(800, 800, P2D);
smooth(8);
}
void draw() {
background(0);
float t = radians(frameCount*.5);
ArrayList<V> vs = new ArrayList<V>();
ArrayList<V> vsBin = new ArrayList<V>();
float minD = 10;
float maxD = 1920/2;
float t;
float hue;
void setup() {
fullScreen(P2D);
background(0);
PGraphics tex;
PImage src;
float t;
float size = 1920/8;
float w = size*2;
float h = sqrt(3)*size;
float xstep = w*(3/4f);
float ystep = h;
int hexCountX;
PGraphics canvas;
void setup() {
fullScreen(P2D);
canvas = createGraphics(width*2, height*2, P2D);
canvas.beginDraw();
canvas.colorMode(HSB, 1, 1, 1, 1);
canvas.background(0);
canvas.endDraw();
}
float prevX, prevY;
PGraphics canvas;
float goldenRatio = 1.61803398875;
void setup() {
size(400, 400, P2D);
background(0);
canvas = createGraphics(width, height, P2D);
canvas.beginDraw();
canvas.background(0);
public void setup() {
size(800, 800, P3D);
smooth(8);
}
public void draw() {
float t = radians(frameCount*.2f);
background(0);
translate(width*.5f, height*.5f);
rotateX(t*.5);
import java.util.UUID;
ArrayList<P> ps = new ArrayList<P>();
int pointCount = 1000;
PImage source;
private float t;
private int framesToCapture = 300;
private int captureStart = -1;
String id = "";
@KrabCode
KrabCode / startpage.html
Last active June 18, 2019 10:08
minimalist google search text input start page
<head>
<script type="text/javascript">
var textInput;
function onload() {
textInput = document.getElementById('textInput');
textInput.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
enterUp();
float t;
void setup() {
fullScreen(P3D);
}
void draw() {
t = radians(frameCount);
background(0);
pushMatrix();
float t;
float frqMult = 3;
float ampMult = .3;
float startFrq = 6;
int octaves = 3;
int count = 30;
int vertices = width;
int sunStartFreq = 10;
;