Пример #1
0
 public void DrawEqTriangle(Vector2 basePos, Vector2 size, Color color, bool flip = false)
 {
     CustomDrawing.DrawEqTriangle(_screenPos + basePos, size, _modulate.ModulateColor(color), flip);
     UpdateDrawBounds(basePos - new Vector2(size.X / 2, size.Y), size);
 }
Пример #2
0
 public void Draw(SpriteBatch spriteBatch, DrawContext ctx) => CustomDrawing.DrawEqTriangle(ctx.Position, Size, ctx.Modulate.ModulateColor(Color));