public void Update(RenderWindow window, Time dt) { var pos = window.MapPixelToCoords(Mouse.GetPosition(window)); if (shape.Contain(pos)) { shape.FillColor = Color.Red; } else { shape.FillColor = color; } }