The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [1.1.2] - 2017-02-19
+### Changed
+- Remove unnecessary console log
+
## [1.1.1] - 2017-02-19
### Changed
- Set encoding and description on index
[1.0.1]: https://github.com/rbdr/heart/compare/1.0.0...1.0.1
[1.1.0]: https://github.com/rbdr/heart/compare/1.0.1...1.1.0
[1.1.1]: https://github.com/rbdr/heart/compare/1.1.0...1.1.1
+[1.1.2]: https://github.com/rbdr/heart/compare/1.1.1...1.1.2
this._following = null; // The status of mouse follow.
this._center = null; // The actual center
this._targetHeartSize = this.heartSize;
- this._
this._targetCenter = {
x: 0,
y: 0
const green = this._updateColorComponent('green', delta);
const blue = this._updateColorComponent('blue', delta);
- console.log(red, green, blue);
-
this._currentColor.red = red;
this._currentColor.green = green;
this._currentColor.blue = blue;
// Updates a single color component.
_updateColorComponent(component, delta) {
+
let color = Math.round(this._currentColor[component] + (delta * this._colorSpeed[component] * this._colorDirection[component]));
if (color >= kColorIteratorLimit) {
this._colorDirection[component] = -1;
// Apply a class to show the cursor.
_showCursor() {
+
this.canvas.classList.add('mouse-moving');
}
// Remove class to hide the cursor.
_hideCursor() {
+
this.canvas.classList.remove('mouse-moving');
}
};