HISE Logo Forum
    • Categories
    • Register
    • Login

    combining paths

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 28 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      prehm
      last edited by prehm

      hello there,
      maybe a noob question, but i am stuck here..

      i am creating a custom keyboard and I have all the key areas saved in an array.
      I want to be able to add a drop shadow that highlights a scale on the keyboard. my intention is to combine the areas of all rectangles that fit the scale to a single path object (or multiple if there is a gap), so that the shadow will enclose adjacent keys.

      I created a path with Content.createPath and tried iterating over the array that contains the areas using a loop and path.addRectangle, but the path data always only shows a single rectangle ( four values).

      any hints?

      cheers :)

      Edit:
      okay so i managed to draw that path (using g.drawpath) and it works fine, but when I add the same data to g.drawDropShadowFromPath i get an error: Point is not an array

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      31

      Online

      1.7k

      Users

      11.8k

      Topics

      102.8k

      Posts