LoginLogin
Might make SBS readonly: thread

GCOLOR

Root / Documentation / [.]

Created:
Set the default graphics color. # Syntax ```sbsyntax GCOLOR color ``` | Input | Description |[#] |`color`| The new default graphics color to use.| Sets the default graphics color for future draw commands, such as `GPSET`, `GLINE`, etc. This color is used when a graphics command does not specify the color explicitly. # Examples ```sb GCOLOR 3 ' Set default color to pink GLINE 0,0,99,99 ' Draws a pink line (use default color) GLINE 0,99,99,0,4 ' Draws a blue line (color was specified) ``` # Notes All arguments are rounded down. There is no built-in function to read the currently set default color. # Errors | Action | Error|[#] | More than one argument is specified | Missing operand | | Less than one argument is specified | Syntax error | | A string was passed for any argument | Type Mismatch | | A value less than 0 or greater than 255 was passed for `color` | Out of range | # See Also - sbs:page/docs-ptc-graphics{Graphics overview} - sbs:page/docs-ptc-gpset{`GPSET`} - sbs:page/docs-ptc-gspoit{`GSPOIT`}

No posts yet (will you be the first?)