Explosions

This commit is contained in:
zenoamaro committed 2019-06-26 03:05:36 +02:00
1 parent 3a31c8ed63
commit 547088084b
2 files changed
+24 -3

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import {drawCircle} from './gfx.js';
export function drawExplosion(ctx, x, y, r) {
drawCircle(ctx, x, y, r, 'white');
const color = 255 - (16 * (r % 16));
drawCircle(ctx, x, y, r, `rgb(${color}, 0, 0)`);
}