if (radius > Math.abs(width) / 2) {
                radius = Math.floor(Math.abs(width) / 2);
            }