@@ -377,7 +377,7 @@ like this:
377377 // We are going to paint with this color.
378378 Color godotBlue = new Color("478cbf");
379379 // We pass the array of Vector2 to draw the shape.
380- DrawPolygon(_head, new Color[]{ godotBlue } );
380+ DrawPolygon(_head, [ godotBlue] );
381381 }
382382
383383When running it you should see something like this:
@@ -474,7 +474,7 @@ draw the line, like this:
474474 Color white = Colors.White;
475475 Color godotBlue = new Color("478cbf");
476476
477- DrawPolygon(_head, new Color[]{ godotBlue } );
477+ DrawPolygon(_head, [ godotBlue] );
478478
479479 // We draw the while line on top of the previous shape.
480480 DrawPolyline(_mouth, white, _mouthWidth);
@@ -535,7 +535,7 @@ its radius, and the third is its color:
535535 Color godotBlue = new Color("478cbf");
536536 Color grey = new Color("414042");
537537
538- DrawPolygon(_head, new Color[]{ godotBlue } );
538+ DrawPolygon(_head, [ godotBlue] );
539539 DrawPolyline(_mouth, white, _mouthWidth);
540540
541541 // Four circles for the 2 eyes: 2 white, 2 grey.
@@ -589,7 +589,7 @@ like this:
589589 Color godotBlue = new Color("478cbf");
590590 Color grey = new Color("414042");
591591
592- DrawPolygon(_head, new Color[]{ godotBlue } );
592+ DrawPolygon(_head, [ godotBlue] );
593593 DrawPolyline(_mouth, white, _mouthWidth);
594594 DrawCircle(new Vector2(42.479f, 65.4825f), 9.3905f, white);
595595 DrawCircle(new Vector2(85.524f, 65.4825f), 9.3905f, white);
@@ -652,7 +652,7 @@ to do it, like this:
652652 Color godotBlue = new Color("478cbf");
653653 Color grey = new Color("414042");
654654
655- DrawPolygon(_head, new Color[]{ godotBlue } );
655+ DrawPolygon(_head, [ godotBlue] );
656656 DrawPolyline(_mouth, white, _mouthWidth);
657657 DrawCircle(new Vector2(42.479f, 65.4825f), 9.3905f, white);
658658 DrawCircle(new Vector2(85.524f, 65.4825f), 9.3905f, white);
0 commit comments