From 63a83fcc92979dfeb5c779c025cb901c4c067832 Mon Sep 17 00:00:00 2001 From: Abhinna Adhikari Date: Sun, 6 Dec 2020 02:02:16 -0500 Subject: [PATCH] Small visual changes --- index.html | 2 +- js/entity.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index cad3b76..8b71f8b 100644 --- a/index.html +++ b/index.html @@ -95,7 +95,7 @@

DDD Filter applications in the Network

-

+

diff --git a/js/entity.js b/js/entity.js index ef0d9f7..286dcbe 100644 --- a/js/entity.js +++ b/js/entity.js @@ -28,9 +28,9 @@ export class Entity { } draw() { - this.ctx.fillstyle = 'black'; - this.ctx.font = '20px san-serif'; - this.ctx.fillText(this.name, this.x + 10, this.y - 20); + this.ctx.fillStyle = 'black'; + this.ctx.font = '16px Helvetica'; + this.ctx.fillText(this.name, this.x + 20, this.y - 20); this.ctx.drawImage(this.img, this.x, this.y, this.width, this.height); }