1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 20:16:33 +02:00

Added "white" rng

This commit is contained in:
kkapsner 2017-11-24 17:06:43 +01:00
parent 970de1c093
commit 2bc0315c5b
7 changed files with 34 additions and 5 deletions

View file

@ -29,6 +29,9 @@
case "constant":
setRandomSupply(randomSupplies.constant);
break;
case "white":
setRandomSupply(randomSupplies.white);
break;
default:
setRandomSupply(randomSupplies.nonPersistent);
}

View file

@ -186,4 +186,18 @@
};
}
};
scope.white = {
name: "white",
getRng: function(){
return function(){
return 255;
};
},
getPixelRng: function(){
return function(){
return [255, 255, 255, 255];
};
}
};
}());

View file

@ -37,7 +37,7 @@
{
name: "rng",
defaultValue: "nonPersistent",
options: ["nonPersistent", "constant", "persistent"]
options: ["white", "nonPersistent", "constant", "persistent"]
},
{
name: "useCanvasCache",