This file contains hidden or 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
int bgTop = 20; | |
int bgBot = 230; | |
PImage tex; | |
float sx, sy; | |
PMatrix3D mouseRotation = new PMatrix3D(); | |
void mouseRotate() { | |
float x = mouseX - pmouseX; | |
float y = mouseY - pmouseY; | |
float drag = 0.98; |
This file contains hidden or 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 prevX = 400; | |
float prevY = 400; | |
float dir = 0; | |
float off; | |
int imgSize = 120; | |
PImage img; | |
float bgColor = 30; |
This file contains hidden or 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
void setup() { | |
size(640, 640, P2D); | |
smooth(8); | |
strokeCap(SQUARE); | |
} | |
void draw() { | |
background(100); | |
translate(width/2, height/2); |
This file contains hidden or 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 com.krab.lazy.*; | |
LazyGui gui; | |
long clickStartedMillis = -1; | |
String currentTime; | |
String endTime = ""; | |
PFont bigFont, smallFont; |
This file contains hidden or 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 com.krab.lazy.*; | |
int cols = 64; | |
int rows = 64; | |
LazyGui gui; | |
void setup() { | |
size(1280, 1280, P2D); | |
gui = new LazyGui(this, new LazyGuiSettings().setLoadLatestSaveOnStartup(false)); | |
rectMode(CENTER); |
This file contains hidden or 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 bg; | |
PImage fg; | |
PGraphics pg; | |
int brushRadius = 30; | |
void setup() { | |
size(800, 600, P2D); | |
smooth(2); | |
bg = loadImage("https://wallpapersmug.com/download/800x600/05bf15/galaxy-space-fantasy-art.jpg"); | |
fg = loadImage("https://images.wallpaperscraft.com/image/single/beautiful_scenery_mountains_lake_93318_800x600.jpg"); |
This file contains hidden or 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 com.krab.lazy.*; | |
LazyGui gui; | |
PFont font; | |
int fontSize = -1; | |
void setup() { | |
fullScreen(P2D, 0); | |
gui = new LazyGui(this, new LazyGuiSettings() | |
.setLoadLatestSaveOnStartup(true) |
This file contains hidden or 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
int freq = 49; | |
int num = 128; // column and row count | |
int darkColor = 36; | |
int litColor = 200; | |
void setup() { | |
fullScreen(P2D); | |
noStroke(); | |
// set sane default input | |
mouseX = width/2; |
This file contains hidden or 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 framesToRecord = 120; | |
void setup() { | |
size(600, 600); | |
smooth(4); | |
} | |
void draw() { | |
background(16); | |
noStroke(); |
This file contains hidden or 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 minValue = 0; | |
float maxValue = 300; | |
float startValue = 100; | |
float stepLength = 200; | |
float stepValue = 1.5; | |
int stepCount = ceil((maxValue - minValue) / stepValue); | |
float xDrag = 0; | |
float xDragSpd = 0; | |
float xSpdCoeff = 0.9; | |
float lineHeight = 150; |