public void Fill3DRect(int x, int y, int width, int height, bool raised) { if (isClose) { return; } Color currentARGB = colorValue; LColor col = new LColor(colorValue); LColor brighter = col.Brighter(); LColor darker = col.Darker(); if (!raised) { colorValue = darker.Color; } FillRect(x + 1, y + 1, width - 2, height - 2); colorValue = raised ? brighter.Color : darker.Color; DrawLine(x, y, x, y + height - 1); DrawLine(x + 1, y, x + width - 2, y); colorValue = raised ? darker.Color : brighter.Color; DrawLine(x + 1, y + height - 1, x + width - 1, y + height - 1); DrawLine(x + width - 1, y, x + width - 1, y + height - 2); colorValue = currentARGB; }