コード例 #1
0
 public static void roundRect(float x, float y, float w, float h, float xRadius, float yRadius, Color fillColor)
 {
     Shapes.Rectangle rectangle = new Shapes.Rectangle(x, y, w, h, xRadius, yRadius);
     rectangle.Draw(fillColor);
 }
コード例 #2
0
 /// <summary>
 /// Draws a rectangle
 /// </summary>
 /// <param name="x">The leftmost point of the rectangle</param>
 /// <param name="y">The topmost point of the rectangle</param>
 /// <param name="w">The width of the rectangle</param>
 /// <param name="h">The height of the rectangle</param>
 /// <param name="fillColor">Fill color of the rectangle</param>
 public static void rect(float x, float y, float w, float h, Color fillColor)
 {
     Shapes.Rectangle rectangle = new Shapes.Rectangle(x, y, w, h);
     rectangle.Draw(fillColor);
 }