mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
20 lines
469 B
C#
20 lines
469 B
C#
using Cosmos.System;
|
|
|
|
namespace CMLeonOS.Gui.Apps.Paint.Tools
|
|
{
|
|
internal class CircleBrush : Tool
|
|
{
|
|
public CircleBrush() : base("Circle brush")
|
|
{
|
|
}
|
|
|
|
internal override void Run(Paint paint, Window canvas, MouseState mouseState, int mouseX, int mouseY)
|
|
{
|
|
if (mouseState == MouseState.Left)
|
|
{
|
|
canvas.DrawCircle(mouseX, mouseY, 5, paint.SelectedColor);
|
|
}
|
|
}
|
|
}
|
|
}
|