Created
November 4, 2017 11:42
-
-
Save hiroto3432/3325051f90f670a8277c6a1d1dc3f03a to your computer and use it in GitHub Desktop.
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 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