mirror of
https://github.com/processing/processing4.git
synced 2026-06-08 16:40:46 +02:00
updated PrimitiveShape example
This commit is contained in:
@@ -12,8 +12,7 @@ void setup() {
|
||||
size(640, 360, P2D);
|
||||
smooth();
|
||||
// Creating the PShape as an ellipse
|
||||
// The corner is -50,-50 so that the center is at 0,0
|
||||
circle = createShape(ELLIPSE, -50, -25, 100, 50);
|
||||
circle = createShape(ELLIPSE, 0, 0, 100, 50);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
@@ -27,4 +26,3 @@ void draw() {
|
||||
// Drawing the PShape
|
||||
shape(circle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user