Skip to content

Commit

Permalink
Small visual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinna Adhikari committed Dec 6, 2020
1 parent 3441871 commit 63a83fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2 class="text-white mb-4">DDD Filter applications in the Network</h2>

<div style="float:left; padding-top: 40px; padding-left: 20px;">
<p><button onclick="startSimulation()" class="btn btn-light btn-sm">Start Simulation</button></p>
<p><button onclick="stopSimulation()" class="btn btn-light btn-sm">Stop Simulation</button></p>
<p><button onclick="stopSimulation()" class="btn btn-light btn-sm">End Simulation</button></p>
</div>

<div style="float:left; padding-top: 40px; padding-left: 20px;">
Expand Down
6 changes: 3 additions & 3 deletions js/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 63a83fc

Please sign in to comment.