import { System } from '@serpentity/serpentity';
import { Text } from 'pixi.js';
+import Tinycolor from 'tinycolor2';
import Config from '../config';
import WinnerNode from '../nodes/winner';
// Right now this is final, once a winner is rendered you would need
// to restart the whole system.
if (internals.winnerText) {
+ const color = Tinycolor(internals.winnerText.tint.toString(16));
+ internals.winnerText.tint = parseInt(color.spin(2).toString().substring(1,7), 16);
return;
}
fill: 0xffffff,
align: 'center'
});
+ internals.winnerText.tint = 0xffbbff;
internals.winnerText.scale.x = 0.125;
internals.winnerText.scale.y = 0.125;
internals.winnerText.position.x = Config.horizontalResolution / 2;