We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd69e11 commit d0bc4f4Copy full SHA for d0bc4f4
Source/Objects/LuaObject.h
@@ -498,7 +498,12 @@ class LuaObject final : public ObjectBase
498
}
499
case hash("lua_draw_svg"): {
500
if (argc >= 1) {
501
+ float const x = atom_getfloat(argv + 1);
502
+ float const y = atom_getfloat(argv + 2);
503
+ nvgSave(nvg);
504
+ nvgTranslate(nvg, x, y);
505
drawSVG(nvg, atom_getsymbol(argv)->s_name);
506
+ nvgRestore(nvg);
507
508
break;
509
0 commit comments