Skip to content

Instantly share code, notes, and snippets.

@zeffii
zeffii / Trigger_Array.pde
Last active August 29, 2015 13:55 — forked from anonymous/Trigger_Array.pde
tentative start at drummachine interface
View Trigger_Array.pde
float[][] distances;
float maxDistance;
int spacer;
Trigger[] triggers;
int value = 0;
void setup() {
size(640, 360);
frameRate(32);
View simple.py
# for simplicity represent 2d vectors using 2-tuple floats
points = [(20.0, 20.0), (70.0, 20.0), (70.0, 70.0)]
gl_col = (0.2, 0.9, 0.2, .2)
bgl.glBegin(bgl.GL_POINTS)
bgl.glColor4f(*gl_col)
# for each vector in points, call bgl.glVertex2f
for vector2d in points:
@zeffii
zeffii / donkle.py
Last active August 29, 2015 13:56 — forked from anonymous/donkle.py
View donkle.py
import bpy
import bgl
from bpy_extras.view3d_utils import location_3d_to_region_2d as loc3d2d
# (...)
def draw_points(context, points, size, gl_col):
"""
input
- context: bpy.context ( a 3d view )
@zeffii
zeffii / Trigger_Array.pde
Created February 4, 2014 16:14 — forked from anonymous/Trigger_Array.pde
Processing DrumMachine start
View Trigger_Array.pde
float[][] distances;
float maxDistance;
int spacer;
Trigger[][] triggers;
int value = 0;
int triggers_cols = 8;
int triggers_rows = 3;
void setup() {
@zeffii
zeffii / _.md
Created February 5, 2014 14:53
zeffii's neocities
View _.md
@zeffii
zeffii / _.md
Created February 6, 2014 20:09
coffee_templatefux_wide
View _.md

[ Launch: coffee_templatefux ] 8851666 by zeffii[ Launch: boomstick_motion_wcolor_coffee ] 6399870 by zeffii[ Launch: boomstick_motion_wcolor_coffee ] 6382272 by zeffii[ Launch: boomstick_motion_wcolor_coffee ] 6382237 by zeffii[ Launch: boomstick_motion_wcolor_coffee ] 6379220 by zeffii[ Launch: boomstick_motion_wcolor ] 6376715 by zeffii[ Launch: boomstick_motion2 ] 6365156 by zeffii[ Launch: boomstick_motion ] 6364686 by zeffii[ Launch: boomstick ] 6364584 by zeffii[ Launch: zeffii default ] 6364028

View Trigger_Array.pde
float[][] distances;
float maxDistance;
int spacer;
Trigger[][] triggers;
int value = 0;
int triggers_cols = 8;
int triggers_rows = 3;
void setup() {
@zeffii
zeffii / _.md
Created February 9, 2014 13:21
processing basics mod
View _.md
@zeffii
zeffii / _.md
Created February 9, 2014 13:23
ptempis p5js
View _.md
@zeffii
zeffii / _.md
Created February 11, 2014 11:55
coffee_templatefux_wide