Skip to content

Alpha issue #2

Description

@REDECODE

Hi,
the last lines in Draw() method where is set Alpha is changed from the original java repository (in particular _timer variable).

The lines:

            _timer++;

            if (_rippleType == 1)
            {
                if ((((float) _timer * _frameRate) / _duration) > 0.6f)
                    _paint.Alpha =
                        (int) (_paintAlpha - (_paintAlpha * (((float) _timerEmpty * _frameRate) / _durationEmpty)));
                else
                    _paint.Alpha = _paintAlpha;
            }
            else
                _paint.Alpha = (int)(_paintAlpha - (_paintAlpha * (((float)_timerEmpty * _frameRate) / _duration)));

are now:

           if (_rippleType == 1)
            {
                if ((((float) _timer * _frameRate) / _duration) > 0.6f)
                    _paint.Alpha =
                        (int) (_paintAlpha - (_paintAlpha * (((float) _timerEmpty * _frameRate) / _durationEmpty)));
                else
                    _paint.Alpha = _paintAlpha;
            }
            else
                _paint.Alpha = (int)(_paintAlpha - (_paintAlpha * (((float)_timer * _frameRate) / _duration)));

            _timer++;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions