Line 16: | Line 16: | ||
}); | }); | ||
− | var MID_HEIGHT = | + | var MID_HEIGHT = 72; // The height of the middle of the leaf. |
− | var HEIGHT = | + | var HEIGHT = 17; // Leaf Height. |
− | var WIDTH = | + | var WIDTH = 4; // Leaf width. |
− | var distance = | + | var distance = 5; // Distance between leafs. |
var ANGLE = Math.PI / 2; // The angle tha the leaf starts. | var ANGLE = Math.PI / 2; // The angle tha the leaf starts. | ||
− | var RANDOMNESS = | + | var RANDOMNESS = 17; // How random these parameters are the leaf's array. |
var time = 0; // Time counter. | var time = 0; // Time counter. | ||
− | var leafColor = '# | + | var leafColor = '#3AAA35'; // Color of the leaf. |
var FPS = 30; | var FPS = 30; | ||
− | var SPEED = | + | var SPEED = 2; |
− | var LAMBDA = 0. | + | var LAMBDA = 0.1; |
/*! | /*! |
Revision as of 09:48, 6 October 2021