Explosions
This commit is contained in:
1 parent
3a31c8ed63
commit
547088084b
2 files changed
+24
-3
No files matched your search
+2
-1
@@ -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)`);
|
||||
}
|
||||
Reference in new issue
Block a user