diff options
| -rw-r--r-- | README.md | 64 |
1 files changed, 63 insertions, 1 deletions
@@ -13,8 +13,40 @@ sounds. > download and replace them from official repositories if desired; they have > not been tampered with. -## Controller mappings +## Documentation +### Included functions + +| Function | Description | Arguments | Returns | +|---------------------|-------------|-----------|---------| +| open_window | | | | +| close_window | | | | +| window_running | | | bool | +| start_drawing | | | | +| stop_drawing | | | | +| clear_window | | | | +| start_camera | | | | +| stop_camera | | | | +| move_camera | | | | +| set_fps | | | | +| get_fps | | | number | +| get_dt | | | number | +| get_width | | | number | +| get_height | | | number | +| draw_info | | | | +| draw_rect | | | | +| draw_text | | | | +| draw_pixel | | | | +| draw_line | | | | +| draw_circle | | | | +| draw_ellipse | | | | +| draw_triangle | | | | +| load_image | | | | +| load_audio | | | | +| button_down | | | bool | +| button_pressed | | | bool | + +### Controller mappings | Button | Keyboard | Xbox | Playstation | Nintendo | |------------------|----------|------|-------------|----------| @@ -27,6 +59,36 @@ sounds. | button.X | K | N/A | | | | button.Y | O | N/A | | | +### Default colors + +| Color Name | Red (r) | Green (g) | Blue (b) | Alpha (a) | +|---------------------|---------|-----------|----------|-----------| +| `color.LIGHTGRAY` | 200 | 200 | 200 | 255 | +| `color.GRAY` | 130 | 130 | 130 | 255 | +| `color.DARKGRAY` | 80 | 80 | 80 | 255 | +| `color.YELLOW` | 253 | 249 | 0 | 255 | +| `color.GOLD` | 255 | 203 | 0 | 255 | +| `color.ORANGE` | 255 | 161 | 0 | 255 | +| `color.PINK` | 255 | 109 | 194 | 255 | +| `color.RED` | 230 | 41 | 55 | 255 | +| `color.MAROON` | 190 | 33 | 55 | 255 | +| `color.GREEN` | 0 | 228 | 48 | 255 | +| `color.LIME` | 0 | 158 | 47 | 255 | +| `color.DARKGREEN` | 0 | 117 | 44 | 255 | +| `color.SKYBLUE` | 102 | 191 | 255 | 255 | +| `color.BLUE` | 0 | 121 | 241 | 255 | +| `color.DARKBLUE` | 0 | 82 | 172 | 255 | +| `color.PURPLE` | 200 | 122 | 255 | 255 | +| `color.VIOLET` | 135 | 60 | 190 | 255 | +| `color.DARKPURPLE` | 112 | 31 | 126 | 255 | +| `color.BEIGE` | 211 | 176 | 131 | 255 | +| `color.BROWN` | 127 | 106 | 79 | 255 | +| `color.DARKBROWN` | 76 | 63 | 47 | 255 | +| `color.WHITE` | 255 | 255 | 255 | 255 | +| `color.BLACK` | 0 | 0 | 0 | 255 | +| `color.BLANK` | 0 | 0 | 0 | 0 | +| `color.MAGENTA` | 255 | 0 | 255 | 255 | + ## Libraries & Assets - https://github.com/rxi/microtar |
