Skip to content

Instantly share code, notes, and snippets.

@codeanticode
codeanticode / multiple.pde
Created March 11, 2021 19:14
Create multiple objects attached to trackables
import processing.ar.*;
ARTracker tracker;
ArrayList<ARAnchor> trackAnchors = new ArrayList<ARAnchor>();
void setup() {
fullScreen(AR);
tracker = new ARTracker(this);
tracker.start();
noStroke();
uniform samplerCube cubemap;
uniform float aperture;
varying vec4 vertTexCoord;
const float PI = 3.1415926535897932384626433832795;
const float DEG_TO_RAD = PI/180;
void main() {
@codeanticode
codeanticode / list.md
Last active August 3, 2018 03:21
List of projects made with GLGraphics and GSVideo

Project title (author): link(s)

/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012-15 The Processing Foundation
Copyright (c) 2004-12 Ben Fry and Casey Reas
Copyright (c) 2001-04 Massachusetts Institute of Technology
This library is free software; you can redistribute it and/or
package test;
import java.util.ArrayList;
import com.jogamp.opengl.GL4;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PGraphics;
import processing.core.PImage;
import java.io.*;
import java.net.*;
void setup() {
thread("keepAlive");
}
void draw() {
}
@codeanticode
codeanticode / GoProKeepAlive.pde
Created August 11, 2016 23:43
Processing sketch to keep the GoPro alive
import java.net.Socket;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
void setup() {
thread("keepAlive");
@codeanticode
codeanticode / Artificial.pde
Last active August 27, 2019 06:34
ported shadertoy shader https://www.shadertoy.com/view/4ljGW1 to Processing
PShader artificial;
void setup() {
size(640, 360, P3D);
noStroke();
artificial = loadShader("artificial.glsl");
artificial.set("iResolution", float(width), float(height), 0.0);
}
PGraphics pg;
PSurface surf;
void settings() {
size(320, 240);
}
void setup() {
pg = createGraphics(500, 200);
surf = pg.createSurface();