- Code: Select all
//Base color of the button
erase(81, 132, 172, 0);
//Set the color of the border for the top and left sides
setpen(105, 200, 200, 4, 0);
// Make the top and left borders
moveto(4, 4);
lineto(width-1, 4);
moveto(4, 4);
lineto(4, height-1);
//Set the color of the border for the botom and right sides
setpen(49, 100, 100, 4, 0);
//Make the botom and right borders
moveto(0, height-1);
lineto(width-1, height-1);
lineto(width-1, 0);
But instead of making a lighter colored border it looks like this: