Skip to main content
Participant
July 21, 2022
Question

argument 1 to createPath() must be 2 numbers

  • July 21, 2022
  • 1 reply
  • 402 views

i want to ellipses the mask path

but i don't know where my code went wrong...

 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
July 21, 2022

It looks like p1 through p4 are missing their square brackets, like this:

p1 = [rect.left + rect.width/2, rect.top + 5];