Skip to content

Instantly share code, notes, and snippets.

final int R = 20;
final int circleNum = 6;
PVector []pos = new PVector[circleNum];
color []shapeColor = {#FF8CC6, #eaeaea, #FA198B, #FF8CC6, #eaeaea, #FA198B};
void setup() {
size(500, 500);
background(#ffffff);
rectMode(CENTER);
for (int i = 0; i < circleNum; i++)
float waveHeight;
void setup() {
size(640, 640);
background(-1);
}
void draw() {
noStroke();
fill(#ffffff, 10);
PGraphics bottomScreen;
Bubble []bubble = new Bubble[50];
PVector []waveHeight = new PVector[640];
void setup() {
size(640, 640);
bottomScreen = createGraphics(width, height/2);
for (int i = 0; i < bubble.length; i++) {
float x = random(bottomScreen.width);
final int PANEL_NUM = 100;
final int PANEL_SIZE = 50;
BorderPanel []bp = new BorderPanel[PANEL_NUM];
boolean []paintable = new boolean[PANEL_NUM];
IntList drawableIndex = new IntList();
int frameCount;
void setup() {
size(500, 500);
initValues();
void setup() {
size(640, 640);
}
void draw() {
background(#ffffff);
for (int i = 64; i > 0; i /= 4)
drawPanels(i);
final int PANEL_NUM = 100;
final int PANEL_SIZE = 50;
paintPanel []pp = new paintPanel[PANEL_NUM];
boolean []paintable = new boolean[PANEL_NUM];
IntList paintableIndex = new IntList();
int frameCount;
void setup() {
size(500, 500);
initValues();
PGraphics pg;
void setup() {
size(500, 500);
pg = createGraphics(200, 200);
}
void draw() {
background(-1);
int circleX, circleY;
void setup() {
size(500, 500);
circleX = width/2;
circleY = height/2;
}
void draw() {
background(-1);
final int SCREEN_NUM = 5;
PGraphics []rotateScreen = new PGraphics[SCREEN_NUM];
PFont font;
String kanji = "回転";
final int fontSize = 160;
int [] rotateDegrees = new int[SCREEN_NUM];
int [] rotateSpeed = new int[SCREEN_NUM];
boolean allRotateFinish = false;
void setup() {
PGraphics pg;
PFont font;
String kanji = "憂鬱";
final int fontSize = 200;
void setup() {
size(500, 500);
font = createFont("Yu mincho", fontSize);
pg = createGraphics(50, 50);