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!
Tap, Drag, Click, Move, Create Art, Take Screenshot. Rotate screen to erase.
CC Attribution ShareAlike
Space Draw
Odekirk
xxxxxxxxxx
//import controlP5.*;
//import processing.dxf.*;
/////var
color leafColor;
float xPos, yPos;
int maxLeaves;
float eWidth, eHeight;
float hueColor, hueColorMapped;
float bWidth, bHeight;
///// var
int sphereA;
float angle;
int radius;
float xpos;
float ypos;
float circcenterx;
float circcentery;
color fillColor;
float x, y;
float easing;
//I couldnt add save frame cause P3D objects wont allow frame to render?
//I was moving this weekend so I didnt have as much time as I needed.
void setup () {
frameRate(360);
background (0);
fullScreen( WEBGL);
//size(800, 1850,P3D);//cretaes a 3d draw enviroment based on mouse postion
smooth();
noStroke();
maxLeaves= 100; //sets the amount of abstractions to be drawn
easing=8.80;
radius=5;//3d sphere size
}
void draw () {
float targetX = mouseX;
float targetY =mouseY;
x += (targetX-x)*easing;
y += (targetY-y)*easing;
//matrix only for moving follower
pushMatrix();
translate(x,y);
float a = atan2(mouseY+y, mouseX+x);//the distance between cursor and object
rotate(a);
rect(-120, 5, -124, 10);
popMatrix();
fill(fillColor);
fillColor=color(random(255), random(255), random (255));
ellipse(mouseX, mouseY, 5,5);// make sure this outside of the matrix
translate(50, 50, 0);
rotate(mouseY * 0.05, mouseX * 0.05, 0)
// rotateX(mouseY * 0.05);
// rotateY(mouseX * 0.05);
fill(mouseX * 2, 0, 1);
sphereA=([radius=40], [detailX=10], [detailY=10]);
// sphereDetail(mouseX / 4);
sphereA=(50,15,15);
//for loop for randomztion of objects drawn
for (float i=0; i<maxLeaves; i++) {
//sets colors and postions and angles with cos sin statement
fill(10.1, 5);
fill(fillColor);
fillColor=color(random(255), random(255), random (255), 10);
xpos=circcenterx-(cos(angle)*radius)+random(100,50);
ypos=circcentery+(sin(angle)*radius)-random(20,800);
ellipse(xpos, ypos, 600, 5.61);
angle+=random(200, 20.5);
angle+=random(80,800);
radius=10;
circcenterx=random(width/2);
circcentery=random(height/2);
fill(0);
xPos=random(0, width);
yPos=random(90, 600);//hight for coving circles in background AKA SPACE
bWidth=random(15,5);
bHeight=random(21,3);
ellipse(xPos, yPos, bWidth, bHeight);
// Sets random postions of lines, and sizes of them
colorMode(HSB);
hueColor=random (0, 0);
hueColorMapped=map (hueColor ,100,0,0, 255);
leafColor = color (hueColorMapped ,0 ,150);
fill(leafColor);
xPos=random(0, width);////stars
yPos=random(0, height);
eWidth=random(1,5);
eHeight=random(2,3);
ellipse(xPos, yPos, eWidth, eHeight);
ellipse(xPos, yPos, eWidth, eHeight);
ellipse(xPos, yPos, eWidth, eHeight);
}
}
See More Shortcuts