Skip to content

Instantly share code, notes, and snippets.

View andrusenn's full-sized avatar

Andru andrusenn

View GitHub Profile
@andrusenn
andrusenn / ppdlm.pde
Last active October 3, 2018 17:58
Algoritmo base convolución
/*
Little pleasures of the Mona / Pequeños placeres de la mona
Andrés Senn
andressenn.com/pequenos-placeres-de-la-mona/
Base algorithm
2018
Lic: CC 4.0 International
@andrusenn
andrusenn / glitch_the_generative_I.pde
Last active October 11, 2018 03:34
Generative and Glitch
/*
En este sketch hay algunas técnicas utilizadas en varios procesos
In this sketch, there are some techniques used in various process
Andrés Senn
2016-2018
*/
int cell = 5;
ArrayList<ImgBlock> imgsb;
PVector pv;
// Clase espirógrafo / Spirograph
/*
para hacer mucho ruido
to make a lot of noise
*/
class Espiro
{
float radio1 = 0.0;
float radio2 = 0.0;
@andrusenn
andrusenn / WN.pde
Created January 2, 2019 11:07
WhiteNoise Series
/*
WhiteNoise Series
Algunos metodos / Some methods
Andrés Senn
2018/2019
*/
// CUT // CORTAR ---------------------------------
void cortar() {
@andrusenn
andrusenn / CircleParts.js
Last active April 25, 2019 00:02
Perlin Noise Particles
// loop: -------------------------------
fade(10)
// displace(-1,0)
stroke(255, 80)
beginShape(POINTS)
$npsys.update((x, y) => {
if (dist(x, y, width / 2, height / 2) < 300 && x < width / 2) vertex(x, y)
}).nSize(0.01).aVel(osc() * 5).nVel(5)
endShape()
@andrusenn
andrusenn / CutNoise.js
Last active May 6, 2019 23:53
Cut & noise function
/**
* Fragmenta la imagen y la desplaza
* Fragment the image and displace it
*/
function CutNoise() {
let arg = arguments
let mx = mouseX
let my = mouseY
if (arg.length > 0) {
/*
@param _x x position of center
@param _y y position of center
@param _d diemeter of circle
Andrés Senn
*/
@andrusenn
andrusenn / espironoise.js
Last active November 6, 2019 20:12
EspiroNoise
/*
LeParc P5js Livecoder
snippet: espiro
class: EspinoNoise
*/
// Load Snippet
// Eval this first (Ctrl+Enter)
snip('espiro',()=>{
@andrusenn
andrusenn / LiveRect.js
Created July 20, 2019 19:10
Visuals: Minimal 2 Rects
/*
Leparc > 0.2.0
Andres Senn
*/
colorMode(HSB, 255)
function draw() {
// bg(0)
zoom(0.01)
@andrusenn
andrusenn / alebrije.js
Created November 8, 2019 13:00
Code for LeParc
// Hola LeParc!
colorMode(HSB, 255)
function draw() {
fade(random(255),255,255,10)
zoom(0.1)
displace(-5,0)
fill(45, 255, 255, 100)
noStroke()