Skip to content

How to use path? #148

Answered by dnaldoog
Ted-juh asked this question in Q&A
Feb 1, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote
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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Ted-juh
Comment options

You must be logged in to vote
1 reply
@dnaldoog
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants