Mar 23

Anternating Colors Function (altColor)

Each time the function is called alternates between returning the two values.
Useful for alternating colors in a table.

strColor = 0
function altColor(strColor0,strColor1)
	if strColor = 0 then
		altColor = strColor0
		strColor = 1
		altColor = strColor1
		strColor = 0
	end if
end function

Permanent link to this article:

Leave a Reply

Your email address will not be published.