- function getDistance()
- {
- var _loc1 = 0;
- var _loc2 = 1.300000E+000;
- _loc1 = Math.abs(this._y - _parent._ymouse);
- return (_loc1 * _loc2);
- } // End of the function
- function setScale()
- {
- var _loc2 = getDistance();
- var _loc1 = max_scale - _loc2;
- if (_loc1 < min_scale)
- {
- _loc1 = min_scale;
- } // end if
- var _loc3 = this._xscale + (_loc1 - this._xscale) / speed;
- return (_loc3);
- } // End of the function
- function setAlpha()
- {
- var _loc3 = getDistance();
- var _loc1 = max_alpha - _loc3;
- if (_loc1 < min_alpha)
- {
- _loc1 = min_alpha;
- } // end if
- var _loc2 = this._alpha + (_loc1 - this._alpha) / speed;
- return (_loc2);
- } // End of the function
- function fluidSystem()
- {
- var _loc3 = this;
- var _loc1 = setScale();
- var _loc2 = setAlpha();
- _loc3._xscale = _loc1;
- _loc3._yscale = _loc1;
- _loc3._alpha = _loc2;
- } // End of the function
- max_scale = 130;
- min_scale = 50;
- max_alpha = 100;
- min_alpha = 50;
- speed = 3;
- this._xscale = min_scale;
- this._yscale = min_scale;
- this._alpha = min_alpha;
一段代码
最新推荐文章于 2021-03-20 18:29:54 发布