Replies: 2 comments 1 reply
-
paint = function(--[[ CtrlrComponent --]] comp --[[ CtrlrComponent --]], g) g:fillAll(Colour(0xff0000ff)) g:setColour(Colour(0xffffffff)) local cPath = Path() local transform = AffineTransform() cPath:addRectangle(100, 100, 50, 50) g:fillPath(cPath, transform) end |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ted-juh
-
Need to get to work but after some fiddling, I found out that: fillPath = "Path, AffineTransform" So, when I left out the "stroke" it seemed to work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following code:
cPath = Path() cPath:addRectangle(100,100,50,50) g:fillPath(cPath)
But it throws an error: attempt to call global "Path" (a nill value)
Beta Was this translation helpful? Give feedback.
All reactions