summaryrefslogtreecommitdiffstats
path: root/lua-bindings/diaphragm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua-bindings/diaphragm.lua')
-rw-r--r--lua-bindings/diaphragm.lua11
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
1local M = {} 3local M = {}
2 4
3M.core = require("libdiaphragm") 5M.core = require("libdiaphragm")
@@ -184,6 +186,15 @@ function M.straight_path.new(params)
184 return result 186 return result
185end 187end
186 188
189M.image = {}
190
191function 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
196end
197
187function M.shape(params) 198function M.shape(params)
188 params = params or {} 199 params = params or {}
189 200