public static Color GetHandleColor(Color shapeColor) { return(ShapesMath.Luminance(shapeColor) > 0.7f ? Color.black : Color.white); }