mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
Added "white" rng
This commit is contained in:
parent
970de1c093
commit
2bc0315c5b
7 changed files with 34 additions and 5 deletions
|
@ -29,6 +29,9 @@
|
|||
case "constant":
|
||||
setRandomSupply(randomSupplies.constant);
|
||||
break;
|
||||
case "white":
|
||||
setRandomSupply(randomSupplies.white);
|
||||
break;
|
||||
default:
|
||||
setRandomSupply(randomSupplies.nonPersistent);
|
||||
}
|
||||
|
|
|
@ -186,4 +186,18 @@
|
|||
};
|
||||
}
|
||||
};
|
||||
|
||||
scope.white = {
|
||||
name: "white",
|
||||
getRng: function(){
|
||||
return function(){
|
||||
return 255;
|
||||
};
|
||||
},
|
||||
getPixelRng: function(){
|
||||
return function(){
|
||||
return [255, 255, 255, 255];
|
||||
};
|
||||
}
|
||||
};
|
||||
}());
|
|
@ -37,7 +37,7 @@
|
|||
{
|
||||
name: "rng",
|
||||
defaultValue: "nonPersistent",
|
||||
options: ["nonPersistent", "constant", "persistent"]
|
||||
options: ["white", "nonPersistent", "constant", "persistent"]
|
||||
},
|
||||
{
|
||||
name: "useCanvasCache",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue