Color Queries

Color queries can only be used to retrieve arguments for the SetPenColor and SetFillColor commands. These queries can be used in place of the arguments.

getUserFillColor()
getUserBorderColor()
getUserFontColor()
getUserPenSize()

 

 

 shape main

 {

         setfillcolor(getuserbordercolor());

         setpencolor(getuserfillcolor());

 

         rectangle(0,0,100,100);

 }