Skip to content

Commit 59dddfe

Browse files
committed
update engine
1 parent b54b913 commit 59dddfe

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

public/about.html

+2-5
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
436436
*/
437437

438438
// Draw a text
439-
text(x, y, text, color? = 3): void
439+
// style can be "normal", "italic" and/or "bold"
440+
text(x, y, text, color? = 3, style = 'normal'): void
440441

441442
// Sets the text alignment and baseline
442443
// default values: align = 'start', baseline = 'top'
@@ -450,10 +451,6 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
450451
// Sets the font size (default: 32)
451452
textsize(size: number): void
452453

453-
// Used to draw a text as 'bold' or/and 'italic'
454-
// use "normal" or empty string to reset the font style
455-
textstyle(style: string)
456-
457454
// Returns the text dimensions like width and height
458455
// when size is omitted, it will use the current
459456
// font size defined by textsize()

public/app.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)