Added resolution parameter to config.

This commit is contained in:
Rezmason
2020-11-22 23:53:16 -08:00
parent e214dc2e44
commit d094f7e0b7
3 changed files with 7 additions and 3 deletions

View File

@@ -46,7 +46,8 @@ const defaults = {
{ rgb: [0.57, 0.97, 0.61], at: 1.0 }
],
raindropLength: 1,
slant: 0
slant: 0,
resolution: 1
};
const versions = {
@@ -129,6 +130,7 @@ const paramMapping = {
version: { key: "version", parser: s => s },
effect: { key: "effect", parser: s => s },
width: { key: "numColumns", parser: s => nullNaN(parseInt(s)) },
resolution: { key: "resolution", parser: s => nullNaN(parseFloat(s)) },
animationSpeed: {
key: "animationSpeed",
parser: s => nullNaN(parseFloat(s))