|, /, -, \, |, /, -, ...etc (repeats)
I know this has been done before, I want to make an effect where it uses those characters in that order to make what looks like a spinning line, you may get what I mean if you've ever seen this done when a certain program loads (I can't remember any specifics though).
I'm not really sure how to do this, so far I have:
Code: Select all
function effect()
{
if(c=='/')
{
var c = '--';
}
else if(c=='--')
{
var c = '\\';
}
else if(c=='\\')
{
var c = '|';
}
else if(c=='|')
{
var c = '/';
}
return c;
}I hope you can understand what I'm trying to do.