Skip to content

Instantly share code, notes, and snippets.

View Morpholux's full-sized avatar

Jean-François Renaud Morpholux

View GitHub Profile
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 3.5.3
// jeudi, 19 septembre 2019
/*
Remake of an effect that I saw in a post on Facebook.
https://www.facebook.com/groups/creativecodingp5/permalink/2371544796426883/
*/
PImage img;
@Morpholux
Morpholux / blobby_shape.pde
Created March 5, 2020 02:57
Using curveVertex to create a blob type of closed shape
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 3.5.4
// mercredi, 4 mars 2020
int numPoints = 7;
float[] posX = new float[numPoints];
float[] posY = new float[numPoints];
float radius;
float theta = TWO_PI / numPoints;
@Morpholux
Morpholux / curve_vertex_closed_figure.pde
Created April 11, 2020 18:58
How to manage creation of a curved close figure, without any apparent joint in segments connection
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 3.5.4
// samedi, 11 avril 2020
int nbSegments = 3; //at least three segments
PVector [] pts = new PVector[nbSegments];
void setup() {
size(600, 600);
background(0);
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 3.5.4
// dimanche, 20 septembre 2020
import garciadelcastillo.dashedlines.*;
DashedLines dash;
PVector [] pts = new PVector[3];
int dist = 0;
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 3.5.4
// vendredi, 23 juillet 2021
PGraphics pg; // declaration of PGraphics object
void setup() {
size(600, 600);
background(0);
pg = createGraphics(200, 200); // construction of PGraphics object at it’s own size
@Morpholux
Morpholux / pattern.pde
Created September 19, 2023 02:03
Complex pattern
// renaud.jean-francois(arobas)uqam(point)ca
// Syntaxe Processing version 4.3
// lundi, 18 septembre 2023
color w, k, y;
void setup() {
size(840, 840);
background(0);
noStroke();