diff options
Diffstat (limited to 'lua-bindings/diaphragm.lua')
-rw-r--r-- | lua-bindings/diaphragm.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua-bindings/diaphragm.lua b/lua-bindings/diaphragm.lua index a308c28..d4e3dc9 100644 --- a/lua-bindings/diaphragm.lua +++ b/lua-bindings/diaphragm.lua | |||
@@ -1,3 +1,5 @@ | |||
1 | -- TODO: split file | ||
2 | |||
1 | local M = {} | 3 | local M = {} |
2 | 4 | ||
3 | M.core = require("libdiaphragm") | 5 | M.core = require("libdiaphragm") |
@@ -184,6 +186,15 @@ function M.straight_path.new(params) | |||
184 | return result | 186 | return result |
185 | end | 187 | end |
186 | 188 | ||
189 | M.image = {} | ||
190 | |||
191 | function M.image.new(params) | ||
192 | params = params or {} | ||
193 | local result = M.core.image(params) | ||
194 | M.util.tbl_assign_reserved(params, result, bounds_reserved) | ||
195 | return result | ||
196 | end | ||
197 | |||
187 | function M.shape(params) | 198 | function M.shape(params) |
188 | params = params or {} | 199 | params = params or {} |
189 | 200 | ||