From a0f53a31ce3da4d9474eb7493baab8f48a530198 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Thu, 30 Jan 2020 19:14:08 +0000 Subject: [PATCH] Add docs for kiwmi_renderer --- lua_docs.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua_docs.md b/lua_docs.md index b4a1355..a03e418 100644 --- a/lua_docs.md +++ b/lua_docs.md @@ -194,6 +194,17 @@ Callback receives the output. The output is being resized. Callback receives a table containing the `output`, the new `width`, and the new `height`. +## kiwmi_renderer + +Represents a rendering context, to draw on the output. + +### Methods + +#### renderer:draw_rect(color, x, y, w, h) + +Draws a rect at the given position. +Color is a string in the form #rrggbb or #rrggbbaa. + ## kiwmi_view Represents a view (a window in kiwmi terms).