Jump to content

User:Caleb Cooper/sandbox: Difference between revisions

From pool
Content deleted Content added
No edit summary
No edit summary
Line 46: Line 46:




{{Get|this|<pre>
{{Get|this|example=<pre>
JSFX.FireSpark.prototype.changeColour = function()
JSFX.FireSpark.prototype.changeColour = function()
{
{

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


this
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);
}