diff --git a/README.md b/README.md index 102a429..849a95b 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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} + +``` +