mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removing some examples
This commit is contained in:
@@ -16,7 +16,7 @@ int lastTime = 0;
|
||||
|
||||
void setup()
|
||||
{
|
||||
size(640, 200);
|
||||
size(640, 360);
|
||||
strokeWeight(12);
|
||||
smooth();
|
||||
background(204);
|
||||
|
||||
@@ -4,14 +4,18 @@
|
||||
* Click and drag the mouse to draw a line.
|
||||
*/
|
||||
|
||||
int px, py;
|
||||
|
||||
void setup() {
|
||||
size(640, 200);
|
||||
size(640, 360);
|
||||
background(102);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
stroke(255);
|
||||
if(mousePressed) {
|
||||
line(mouseX, mouseY, pmouseX, pmouseY);
|
||||
line(mouseX, mouseY, px, py);
|
||||
}
|
||||
px = mouseX;
|
||||
py = mouseY;
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ void setup() {
|
||||
void draw() {
|
||||
// Draw only when mouse is pressed
|
||||
if (mousePressed == true) {
|
||||
angle += 10;
|
||||
float val = cos(radians(angle)) * 6.0;
|
||||
angle += 5;
|
||||
float val = cos(radians(angle)) * 12.0;
|
||||
for (int a = 0; a < 360; a += 75) {
|
||||
float xoff = cos(radians(a)) * val;
|
||||
float yoff = sin(radians(a)) * val;
|
||||
|
||||
Reference in New Issue
Block a user