“Hi” by Mike Jurewicz
https://openprocessing.org/sketch/186960
License CreativeCommons Attribution ShareAlike
https://creativecommons.org/licenses/by-sa/3.0
{{filePath}}
{{width}} x {{height}}
Report Sketch
Oh, that naughty sketch! Please let us know what the issue is below.
Apply Template
Applying this template will reset your sketch and remove all your changes. Are you sure you would like to continue?
Report Sketch
Report Comment
Please confirm that you would like to report the comment below.
We will review your submission and take any actions necessary per our Community Guidelines. In addition to reporting this comment, you can also block the user to prevent any future interactions.
Please report comments only when necessary. Unnecessary or abusive use of this tool may result in your own account being suspended.
Are you sure you want to delete your sketch?
Any files uploaded will be deleted as well.
Delete Comment?
This will also delete all the replies to this comment.
Delete this tab? Any code in it will be deleted as well.
Select a collection to submit your sketch
We Need Your Support
Since 2008, OpenProcessing has provided tools for creative coders to learn, create, and share over a million open source projects in a friendly environment.
Niche websites like ours need your continued support for future development and maintenance, while keeping it an ad-free platform that respects your data and privacy!
Please consider subscribing below to show your support with a "Plus" badge on your profile and get access to many other features!
CC Attribution ShareAlike
Hi
Jurewicz
xxxxxxxxxx
void setup() {
size(400,300);
fill(255);
smooth();
}
//This sets up the sketch's size and background color
void draw() {
background(200);
ellipse(mouseX,mouseY,20,20);
if (mousePressed) {
if (mouseButton == RIGHT) {
fill(0,0,255);
noStroke();
ellipse(pmouseX,pmouseY,20,20);
/*
This sets up the beginning part of the sketch, where an ellipse
will follow the cursor around the screen (it also provides a primary
effect of color when the indicated button on the mouse is clicked)
*/
}else{
rect(30,30,50,50);
rect(30,80,50,50);
rect(30,130,50,50);
rect(30,180,50,50);
rect(80,100,50,50);
rect(120,30,50,50);
rect(120,80,50,50);
rect(120,130,50,50);
rect(120,180,50,50);
rect(200,30,50,50);
rect(200,180,50,50);
rect(250,30,50,50);
rect(250,80,50,50);
rect(250,130,50,50);
rect(250,180,50,50);
rect(300,30,50,50);
rect(300,180,50,50);
/*
This list adds the little greeting that can be seen when clicking
*/
}
}
if (mouseButton == LEFT) {
fill(80,18,32);
noStroke();
ellipse(mouseX,mouseY,20,20);
}
}
/*
This final piece sets up the last addition of color when the second
mouse button is clicked, adding a bit pf a strobe effect if both
buttons are clicked in rapid succession!
*/
See More Shortcuts