Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
diejuse authored Apr 1, 2022
1 parent 470d3ed commit 6e434dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ app.js
init()
});
```
### Code of colors (foreground and background)

0: black      10: darkgray
1: red     11: lightred
2: yellow     12: lightyellow
3: green     13: lightgreen
4: blue     14: lightblue
5: purple     15: violet
6: niagara     16: cyan
7: lightgray     17: white

### Functions

.start( term_columns, term_rows, font_url, width_fontpixels, height_fontpixels, success)
Expand All @@ -69,3 +80,10 @@ app.js
- width_fontpixels: Width of the loaded text font, measured in number of pixels.
- height_fontpixels: Height of the loaded text font, measured in number of pixels.
```
.draw( list_to_draw )
```
- list_to_draw: Array of elements to draw on the pseudo terminal with this structure:
{c:foreground color, b: background color, x: x-coordinate of the pseudo terminal, y: y-coordinate of the pseudo terminal, t: text to draw}
```

0 comments on commit 6e434dd

Please sign in to comment.