@@ -377,7 +377,7 @@ like this:
377
377
// We are going to paint with this color.
378
378
Color godotBlue = new Color("478cbf");
379
379
// We pass the array of Vector2 to draw the shape.
380
- DrawPolygon(_head, new Color[]{ godotBlue } );
380
+ DrawPolygon(_head, [ godotBlue] );
381
381
}
382
382
383
383
When running it you should see something like this:
@@ -474,7 +474,7 @@ draw the line, like this:
474
474
Color white = Colors.White;
475
475
Color godotBlue = new Color("478cbf");
476
476
477
- DrawPolygon(_head, new Color[]{ godotBlue } );
477
+ DrawPolygon(_head, [ godotBlue] );
478
478
479
479
// We draw the while line on top of the previous shape.
480
480
DrawPolyline(_mouth, white, _mouthWidth);
@@ -535,7 +535,7 @@ its radius, and the third is its color:
535
535
Color godotBlue = new Color("478cbf");
536
536
Color grey = new Color("414042");
537
537
538
- DrawPolygon(_head, new Color[]{ godotBlue } );
538
+ DrawPolygon(_head, [ godotBlue] );
539
539
DrawPolyline(_mouth, white, _mouthWidth);
540
540
541
541
// Four circles for the 2 eyes: 2 white, 2 grey.
@@ -589,7 +589,7 @@ like this:
589
589
Color godotBlue = new Color("478cbf");
590
590
Color grey = new Color("414042");
591
591
592
- DrawPolygon(_head, new Color[]{ godotBlue } );
592
+ DrawPolygon(_head, [ godotBlue] );
593
593
DrawPolyline(_mouth, white, _mouthWidth);
594
594
DrawCircle(new Vector2(42.479f, 65.4825f), 9.3905f, white);
595
595
DrawCircle(new Vector2(85.524f, 65.4825f), 9.3905f, white);
@@ -652,7 +652,7 @@ to do it, like this:
652
652
Color godotBlue = new Color("478cbf");
653
653
Color grey = new Color("414042");
654
654
655
- DrawPolygon(_head, new Color[]{ godotBlue } );
655
+ DrawPolygon(_head, [ godotBlue] );
656
656
DrawPolyline(_mouth, white, _mouthWidth);
657
657
DrawCircle(new Vector2(42.479f, 65.4825f), 9.3905f, white);
658
658
DrawCircle(new Vector2(85.524f, 65.4825f), 9.3905f, white);
0 commit comments