-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|683|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Misc


 
HoboBen
Created : 12 December 2006
Edited : 12 December 2006
System : Windows
Language : Blitz

Returning original colours from functions

For handy remembrance of colours in functions

Been doing this for a while, and thought that maybe it'd be handy for any newbies...

If you're calling a function that will use different colours, you may want to return to the set colour that you were using before you called the function. Easy enough...

Here's what you'd do if you want to stick it in your own function...




Here's the thing using another method...



The advantage of that last one is that you can do it mid-program too...



Which would be handy in a few circumstances, although you may be storing the colours as variables anyway for that scenario.

 

Comments