Skip to content

Instantly share code, notes, and snippets.

@hiroto3432
Created November 4, 2017 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroto3432/3325051f90f670a8277c6a1d1dc3f03a to your computer and use it in GitHub Desktop.
Save hiroto3432/3325051f90f670a8277c6a1d1dc3f03a to your computer and use it in GitHub Desktop.
import processing.core.*;
public class GUIbyp5 extends PApplet{
public static void main(String[] args) {
}
public void settings() {
size(640, 480);
}
public void setup() {
colorMode(HSB, 100);
background(0);
}
public void draw() {
noStroke();
rectMode(CORNER);
fill(0, 5);
rect(0, 0, width, height);
rectMode(CENTER);
fill(random(100), 60, 100);
rect(random(width), random(height), 40, 40);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment