drawDropShadowFromPath error: Point is not an array
-
I'm trying to use drawDropShadowFromPath to draw a simple circle. I've created a path and passed in all the relevant info, but I'm getting the error:
Point is not an array
I feel like I'm doing the right thing, but I obviously don't know how this function works.
Here's what I'm doing://circle path data const var circlePathData = "1236.t0F..VDQ..fmCwF..VDQ..fmCwVE1UDQDkQnCwlVXUDQNBCoCw13lTDQfOzoCw1ygSDQFEkpCwlRIRDQJaUqCwVicPDQ9IErCwF2dNDQ1IzrCwlhMLDQXShsCwl7oIDQDeOtCw1ezFDQvk6tCw1nsCDQVfluCwV2U.DQ.HPvCwVts7CQBV3vCwlx03CQDDewCwFrtzCQ1KDxCwVDYvCQdmmxCwVn0qCQPQIyCwVFEmCQ1CoyCwlOHhCQF5FzCwF1+bCQRuhzCwltrWCQ7d7zCw1uORCQ7DT0Cw1voLCQhco0Cwlq6FCQRk70Cw1YFACQFYM1CwV3J6BQX1a1Cw1BJ0BQr5m1Cwl2DuBQNjw1CwlT7nBQVw31CwVXwhBQ7f81CwlBkbBQRx+1CwF..ZBQ...2CwF..ZBQ...2CwF..ZBQ...2CwVWySBQpv91CwFtmMBQzB61Cw1CdGBQF2z1CwFWWABQdNr1CwllT6AQTJg1CwVvV0AQZrS1CwFwduAQ31C1CwFksoAQTrw0CwlGDjAQjOc0CwFRidAQ9iF0CwF8KYAQFsszCwF.+SAQ5tRzCwlO8NAQxs0yCwleGJAQTtVyCwFgdEAQf00xCwFDCAAQhHSxCwF107.QBstwCwVg23.QxnHwCwFuH0.Q5AgvCwlEpw.Qt92uCwFHbt.QxkMuCwFXeq.Q38gtCwlSzn.QBN0sCwlUal.QTcGsCw11Tj.QHyXrCw1Lgh.Q5VoqCwFp.g.QNP4pCwFdye.QxlHpCwF04d.QXhWoCwV3Sd.Q1JlnCwlsAd.QFnzmCwF..d.Q..fmCwF..d.Q..fmCwF..d.Q..fmCwl5Id.Q5ZtlCwlomd.Qt87kCwVGYe.QZvKkCwVLdf.Qz5ZjCwls1g.QwjpiCwFchi.Q705hCwFIgk.QA1KhCwlcxm.QgrcgCwlCVp.QzfvfCw1fKs.QGZDfCw1WRv.Q.+xdCwVIpy.QruecCwlRR2.QlSObCwlNJ6.Qh2AaCwVUQ+.Q9m2YCwF8lCAQtvvXCwFYJHAQHcsWCwF65LAQ.3sVCwlx2QAQdKxUCwFL.WAQFg5TCwlSSbAQxAGTCwlRvgAQz0WSCwlQVmAQnDsRCwFWDsAQL0FRCw1n4xAQhMkQCw1J03AQBSHQCwF.19AQZJvPCwlK6DBQX2bPCwFuCKBQLcNPCwFqNQBQ.9DPCwVAaWBQZa.PCwF..ZBQ9++OCwF..ZBQ9++OCwF..ZBQ9++OCwlnLfBQpdBPCw1QXlBQT5IPCwF7grBQxQVPCw1nnxBQBimPCwVYq3BQVq8PCw1Oo9BQJmXQCwFOgDCQLR3QCwFaRJCQVmbRCw136OCQzfESCwFtbUCQB3xSCwFCzZCQ1kjTCwF.AfCQJhZUCwlvBkCQbjTVCw1f3oCQZiRWCwFegtCQDUTXCwF77xCQ9tYYCwVJJ2CQ9khZCw1dH6CQbttaCwFQ29CQL78bCwl5UBDQjBPdCw12iEDQXzjeCw1mfHDQEBdfCwlrKKDQ7wJgCwVpjMDQmh3gCwFIqODQzLmhCwFydQDQ.oViCw1U+RDQruFjCw1gLTDQGY2jCw1JFUDQfcnkCwlGrUDQ.0YlCwVR9UDQtWKmCwF..VDQ..fmCwF..VDQ..fmCMVY"; const var circlePath = Content.createPath(); circlePath.loadFromData(circlePathData); //In the paint routine g.drawDropShadowFromPath(circlePath, [0, 0, 100, 100], Colours.black, 5, 2);
HiseSnippet 2009.3ocsWstaiacDlZ2UAwtMEM.8APv+xA1fgTZkjUKB5xKhV2kFQIZIETDPQRQRIdQl7nqA4O8UnuP8QpuAsyHYuVaVmM6ZfxeP7w4LybFNy24blSujXKmzz3DtLmMX2RGtL+wr56hXdJdl9Qb0U4x7mx11Lk4jj6nH4cKMSScr4xj402RBxb1a3N77e96xlAlQVNOIhiyH12xokenO6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uuE++8+7cGYLmJg6i66E63N1dUfI6CaCmtuwCCf47On2Wp+1nTe1tSuOxWPu4Bexdy+bCwuMaOelk2yGiu5YhQrZ7+iX7gaz7MYqNaliE6o.7MY0F8Ru9xuyzebktaaSVhOwC5rJTGWkZ4fydDxNRIJwqHF4wuEdjhn6DYe3i+K97vfhz2YdXPwGGjKzzJI9mrNtRityzWePBFSQGth3Y3cUwuyIxcX02o44P7Jb+jk0G5pOxv7uTCK7RM7suTCK9RMrzK0vxuTCu422P5F1RqXwgGW1vw0tW0CaWkIS0HSjAdfsx8+njbqqJ
What am I doing wrong?
-
@Dan-Korneff the offset argument should be a [x, y] array
-
@aaronventure Thank you!
-
-