Jump to content

User:Caleb Cooper/sandbox: Difference between revisions

From pool
Content deleted Content added
No edit summary
No edit summary
Line 44: Line 44:
line four
line four
</syntaxhighlight>
</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>}}

Revision as of 09:14, 16 July 2020

  1. one
    some stuff
    some more stuff
  2. two


line one
line two
line three
line four


line one
line two
line three
line four


line one
line two
line three
line four


line one
line two
line three
line four


line one
line two
line three
line four


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);
}
Need an Example