_draw: function()

in www/src/utils/particles.ts [259:281]


	_draw: function(ctx) {
		let grd;

		ctx.save();

		grd = ctx.createRadialGradient(this.x, this.y, this.radius, this.x, this.y, this.radius * 5);
		grd.addColorStop(0, 'rgba(0, 0, 0, 0.1)');
		grd.addColorStop(1, 'rgba(0, 0, 0, 0)');
		ctx.beginPath();
		ctx.arc(this.x, this.y, this.radius * 5, 0, Math.PI * 2, false);
		ctx.fillStyle = grd;
		ctx.fill();

		const r = Math.random() * this.currentRadius * 0.7 + this.currentRadius * 0.3;
		grd = ctx.createRadialGradient(this.x, this.y, r, this.x, this.y, this.currentRadius);
		grd.addColorStop(0, 'rgba(0, 0, 0, 1)');
		grd.addColorStop(1, Math.random() < 0.2 ? 'rgba(255, 196, 0, 0.15)' : 'rgba(103, 58, 183, 0.75)');
		ctx.beginPath();
		ctx.arc(this.x, this.y, this.currentRadius, 0, Math.PI * 2, false);
		ctx.fillStyle = grd;
		ctx.fill();
		ctx.restore();
	},