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); }
/// <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); }