this._following = null; // The status of mouse follow.
this._center = null; // The actual center
this._targetHeartSize = this.heartSize;
this._following = null; // The status of mouse follow.
this._center = null; // The actual center
this._targetHeartSize = this.heartSize;
const green = this._updateColorComponent('green', delta);
const blue = this._updateColorComponent('blue', delta);
const green = this._updateColorComponent('green', delta);
const blue = this._updateColorComponent('blue', delta);
this._currentColor.red = red;
this._currentColor.green = green;
this._currentColor.blue = blue;
this._currentColor.red = red;
this._currentColor.green = green;
this._currentColor.blue = blue;
// Updates a single color component.
_updateColorComponent(component, delta) {
// 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;
let color = Math.round(this._currentColor[component] + (delta * this._colorSpeed[component] * this._colorDirection[component]));
if (color >= kColorIteratorLimit) {
this._colorDirection[component] = -1;