This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 2.0b9 | |
// jeudi, 23 mai 2013 | |
PFont maPolice; | |
char[] alphabet = { | |
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.6 | |
// jeudi, 21 décembre 2017 | |
// Sublime triangle (triangle d’or) | |
// golden ratio conjugate = 1 / φ: | |
float ratioPhi = 1/((1+sqrt(5))/2.0); // 0.6180339887 | |
color teinte1 = color(170, 30, 100); | |
color teinte2 = color(255, 210, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.7 | |
// lundi, 7 mai 2018 | |
// Global variables | |
boolean record = false; // not ready to record | |
boolean sensingState = true; // ready to trigger | |
int chronoStartingTime; | |
int recordDuration = 100; // in milliseconds | |
float sensorValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.7 | |
// mercredi, 9 mai 2018 | |
// Press spacebar to draw white lines segment while caret is moving. | |
color c = color(40); | |
int posX, posY; | |
int stepLength = 2; | |
int margin = 50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.7 | |
// samedi, 9 juin 2018 | |
// Ajustez au besoin | |
int steps_per_segment = 10; // il y a quatre segments courbe dans le cercle | |
float rayon = 280; | |
float centrex, centrey; | |
// Formule permettant d’établir la distance d’un levier dans une figure circulaire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.7 | |
// mardi, 19 juin 2018 | |
// Rectangle scaling interface : | |
// Click and drag a pseudo cursor from any corners to change size accordingly. | |
// There is also a corner snap effect for the pseudo cursor, | |
// and some limitations (min-max) for the expanding or the contract size. | |
// Set variables to your needs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.3.7 | |
// dimanche, 22 juillet 2018 | |
// Multiple instances of the same sketch | |
// Base on GoToLoop’s solution for Multiple PApplet | |
// https://forum.processing.org/two/discussion/comment/43019/#Comment_43019 | |
ArrayList <PApplet> applets = new ArrayList<PApplet>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// renaud.jean-francois(arobas)uqam(point)ca | |
// Syntaxe Processing version 3.4 | |
// dimanche, 23 septembre 2018 | |
// Pour réaliser une conversion du mode couleur avec la classe Java | |
// http://docs.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html | |
import java.awt.Color; | |
float shiftHue = 0.1; | |
float shiftSat = 0.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Constant circular orbit | |
PVector pos, zAxis; | |
float radius = 200, force = 10; | |
void setup() { | |
size(600, 600); | |
background(0); | |
noStroke(); | |
pos = new PVector(radius, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float [] deltas = new float [8]; | |
void setup() { | |
size(800, 800); | |
background(0); | |
noStroke(); | |
noLoop(); | |
} | |
void draw() { |
OlderNewer