User:Caleb Cooper/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 44:
line four
</syntaxhighlight>
 
 
{{Get|this|<pre>
JSFX.FireSpark.prototype.changeColour = function()
{
var colour="";
 
r2= Math.random()*255;
g2= r2;
b2= 0;
 
if(!(r2 | g2 | b2))
{
r2=255;
g2=255;
b2=0;
}
 
colour = "#" + dec2hex(r2) + dec2hex(g2) + dec2hex(b2);
this.setBgColor(colour);
}
</pre>}}