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
class Oggetto { | |
int dimensione; | |
float xPosOg; | |
float yPosOg; | |
int direzione; | |
float velocita; | |
Oggetto(int d, float x, float y, int dir, float v) { | |
dimensione = d; | |
xPosOg = x; | |
yPosOg = y; |
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
import uibooster.*; | |
import uibooster.model.*; | |
import nice.palettes.*; | |
FilledForm form; | |
ColorPalette palette; | |
int resolution = 360; | |
float rad; | |
float x = 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
license: mit |
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
PImage img; | |
int soglia = 90; | |
int prob = 5; | |
int counter = 0; | |
float[] distanze; | |
ArrayList<Point> punti; | |
int x1, y1, x2, y2; |
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
PImage img; | |
int soglia = 90; | |
int prob = 5; | |
int counter = 0; | |
float[] distanze; | |
ArrayList<Point> punti; | |
int x1, y1, x2, y2; |
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
/* | |
* Coding Rescue #2 - Binarizzare un'immagine | |
* Federico Pepe, 26.10.2017 | |
* http://blog.federicopepe.com/processing | |
*/ | |
float threshold = 150; | |
PImage immagine, imgbin; | |
boolean bin = true; |
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
/* | |
* Glitch di un'immagine con Processing | |
* Federico Pepe, 23.09.2017 | |
* http://blog.federicopepe.com/processing | |
*/ | |
PImage img; | |
int minThreshold = 200; | |
int maxThreshold = 255; |
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
/* | |
* Una palette di colori da un'immagine | |
* Federico Pepe, 28.08.2017 | |
* http://blog.federicopepe.com/processing | |
*/ | |
PImage img; | |
// Numero di "punti" della nostra palette | |
int numPoints = 5; | |
// Valore x di riferimento |
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
/* | |
* Una palette di colori da un'immagine | |
* Federico Pepe, 28.08.2017 | |
* http://blog.federicopepe.com/processing | |
*/ | |
PImage img; | |
// Numero di "punti" della nostra palette | |
int numPoints = 5; | |
// Valore x di riferimento |
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
/* | |
* Una palette di colori da un'immagine | |
* Federico Pepe, 28.08.2017 | |
* http://blog.federicopepe.com/processing | |
*/ | |
PImage img; | |
// Numero di "punti" della nostra palette | |
int numPoints = 5; | |
// Valore x di riferimento |
NewerOlder