Skip to content

Commit

Permalink
improves font rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Apr 20, 2021
1 parent 68e4768 commit 12f0f69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p5.quadrille.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,12 @@ class Quadrille {
this.image(quadrille.memory2D[i][j], j * LENGTH, i * LENGTH, LENGTH, LENGTH);
}
else if (typeof quadrille.memory2D[i][j] === 'string') {
this.push();
this.noStroke();
this.fill(outline);
this.textSize(LENGTH);
this.text(quadrille.memory2D[i][j], j * LENGTH, i * LENGTH, LENGTH, LENGTH);
this.pop();
this.noFill();
this.rect(j * LENGTH, i * LENGTH, LENGTH, LENGTH);
}
Expand Down

0 comments on commit 12f0f69

Please sign in to comment.