Skip to content

Commit

Permalink
Update TscBuffer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinhVu authored Mar 25, 2022
1 parent 2a9eb70 commit 673d9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TscBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ const reverse = (x, y, width, height) => strToBytes("REVERSE " + x + "," + y + "
const text = (x, y, font, rotation, x_multiplication, y_multiplication, content) => {
return strToBytes("TEXT " + x + "," + y + ",\"" + font + "\"," + rotation + "," + x_multiplication + "," + y_multiplication + ",\"" + content + "\"\n")
}
const text2 = (x, y, font, rotation, x_multiplication, y_multiplication, alignment, content) => {
return strToBytes("TEXT " + x + "," + y + ",\"" + font + "\"," + rotation + "," + x_multiplication + "," + y_multiplication + "," + alignment + ",\"" + content + "\"\n")
}
const block11 = (x, y, width, height, font, rotation, x_multiplication, y_multiplication, space, alignment, content) => {
return strToBytes("BLOCK " + x + "," + y + "," + width + "," + height + ",\"" + font + "\"," + rotation + "," + x_multiplication + "," + y_multiplication + "," + space + "," + alignment + ",\"" + content + "\"\n")
}
Expand Down

0 comments on commit 673d9c6

Please sign in to comment.