mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Examples updates for 2.0
This commit is contained in:
@@ -16,14 +16,14 @@ float easing = 0.05;
|
||||
|
||||
void setup()
|
||||
{
|
||||
size(200, 200);
|
||||
size(640, 360);
|
||||
smooth();
|
||||
noStroke();
|
||||
}
|
||||
|
||||
void draw()
|
||||
{
|
||||
background( 51 );
|
||||
background(51);
|
||||
|
||||
targetX = mouseX;
|
||||
float dx = targetX - x;
|
||||
@@ -37,5 +37,5 @@ void draw()
|
||||
y += dy * easing;
|
||||
}
|
||||
|
||||
ellipse(x, y, 33, 33);
|
||||
ellipse(x, y, 66, 66);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user