Improved stencil

This commit is contained in:
Devine Lu Linvega 2017-03-14 13:41:21 -07:00
parent fe9e2c9475
commit e1cec80733
2 changed files with 3 additions and 3 deletions

View File

@ -46,11 +46,11 @@ function Filter_Stencil()
context.font = "5px Arial"; context.font = "5px Arial";
context.fillStyle = color; context.fillStyle = color;
context.fillText("GRID",(w*0.4)+10,10); context.fillText(angle+"'",(w*0.4)+10,10);
context.font = "5px Arial"; context.font = "5px Arial";
context.fillStyle = color; context.fillStyle = color;
context.fillText("GRID",(-w*0.4)-20,-10); context.fillText(angle+"'",(-w*0.4)-20,-10);
context.rotate(-angle*Math.PI/180); context.rotate(-angle*Math.PI/180);
context.translate(-w/2,-h/2); context.translate(-w/2,-h/2);

View File

@ -37,7 +37,7 @@ function Render(rune)
this.hint = function(content) this.hint = function(content)
{ {
var name = content.trim().replace(this.rune,"").trim().split(" "); var name = content.trim().replace(this.rune,"").trim().split(" ")[0];
var h = ""; var h = "";
if(this.collection[name]){ if(this.collection[name]){