public UGColor(byte a, UGColor color) { ColorAsInt = 0; B = 0; G = 0; R = 0; Color = color.Color; A = a; }
public static void DrawPath(this IUGContext context, IUGPath path, Vector2 offset, UGColor color) => context.DrawPath(path, offset.X, offset.Y, color, 1F);
public static void FillRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radiusX, float radiusY, UGColor color) => context.FillRoundedRectangle(point.X, point.Y, size.Width, size.Height, radiusX, radiusY, color);
public static void FillRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radiusX, float radiusY, UGColor color) => context.FillRoundedRectangle(x, y, size.Width, size.Height, radiusX, radiusY, color);
public static void FillRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color) => context.FillRectangle(point.X, point.Y, size.Width, size.Height, color);
public static void FillRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color) => context.FillRectangle(x, y, size.Width, size.Height, color);
public static void FillCircleInRectangle(this IUGContext context, Vector2 point, float length, UGColor color) => context.FillCircleInRectangle(point.X, point.Y, length, color);
public static void DrawTextLayout(this IUGContext context, IUGTextLayout textLayout, Vector2 point, UGColor color) => context.DrawTextLayout(textLayout, point.X, point.Y, color);
public static void DrawRectangle(this IUGContext context, UGRect rect, UGColor color, float strokeWidth) => context.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height, color, strokeWidth);
public static void DrawRectangle(this IUGContext context, UGRect rect, UGColor color) => context.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height, color, 1F);
public static void DrawRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color, float strokeWidth) => context.DrawRectangle(point.X, point.Y, size.Width, size.Height, color, strokeWidth);
public static void DrawRectangle(this IUGContext context, Vector2 point, float width, float height, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle) => context.DrawRectangle(point.X, point.Y, width, height, color, strokeWidth, strokeStyle);
public static void DrawRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color, float strokeWidth) => context.DrawRectangle(x, y, size.Width, size.Height, color, strokeWidth);
public static void DrawRectangle(this IUGContext context, float x, float y, float width, float height, UGColor color) => context.DrawRectangle(x, y, width, height, color, 1F);
public static void DrawPath(this IUGContext context, IUGPath path, Vector2 offset, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle) => context.DrawPath(path, offset.X, offset.Y, color, strokeWidth, strokeStyle);
public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle) => context.DrawRoundedRectangle(point.X, point.Y, size.Width, size.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
public static void DrawRoundedRectangle(this IUGContext context, UGRect rect, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle) => context.DrawRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
public static void DrawRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radius, UGColor color) => context.DrawRoundedRectangle(x, y, size.Width, size.Height, radius, radius, color, 1F);
public static void FillCircle(this IUGContext context, Vector2 centerPoint, float radius, UGColor color) => context.FillCircle(centerPoint.X, centerPoint.Y, radius, color);
public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radius, UGColor color) => context.DrawRoundedRectangle(point.X, point.Y, width, height, radius, radius, color, 1F);
public static void FillEllipse(this IUGContext context, Vector2 centerPoint, float radiusX, float radiusY, UGColor color) => context.FillEllipse(centerPoint.X, centerPoint.Y, radiusX, radiusY, color);
public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radius, UGColor color) => context.DrawRoundedRectangle(point.X, point.Y, size.Width, size.Height, radius, radius, color, 1F);
public static void FillRectangle(this IUGContext context, Vector2 point, float width, float height, UGColor color) => context.FillRectangle(point.X, point.Y, width, height, color);
public static void DrawRoundedRectangle(this IUGContext context, UGRect rect, float radius, UGColor color) => context.DrawRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radius, radius, color, 1F);
public static void FillRectangle(this IUGContext context, UGRect rect, UGColor color) => context.FillRectangle(rect.X, rect.Y, rect.Width, rect.Height, color);
public static void DrawRoundedRectangle(this IUGContext context, float x, float y, float width, float height, float radiusX, float radiusY, UGColor color) => context.DrawRoundedRectangle(x, y, width, height, radiusX, radiusY, color, 1F);
public static void FillRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radiusX, float radiusY, UGColor color) => context.FillRoundedRectangle(point.X, point.Y, width, height, radiusX, radiusY, color);
public static void DrawRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle) => context.DrawRoundedRectangle(x, y, size.Width, size.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
public static void FillRoundedRectangle(this IUGContext context, UGRect rect, float radiusX, float radiusY, UGColor color) => context.FillRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radiusX, radiusY, color);
public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radiusX, float radiusY, UGColor color, float strokeWidth) => context.DrawRoundedRectangle(point.X, point.Y, width, height, radiusX, radiusY, color, strokeWidth);