HISE Logo Forum
    • Categories
    • Register
    • Login

    fillRoundedRectangle cornerData JSON obj formatting ?

    Scheduled Pinned Locked Moved Documentation
    4 Posts 3 Posters 334 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.
    • F
      Fergler
      last edited by

      Link Preview Image
      HISE | Docs

      favicon

      (docs.hise.audio)

      I can’t find what formatting the cornerData object is expecting - mostly the key names. I tried topleft and topLeft

      Use case: bidirectional slider with rounded far left and right but straight middle.

      If anyone knows, keenly interested. Trying a programmed path then fillPath in the meantime. Thanks!

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Fergler
        last edited by

        @Fergler

        I think its an array of radii.. e.g. [6,0,0,6]

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          I posted a video about this on Patreon last month - https://www.patreon.com/posts/how-to-draw-with-100451989

          The second parameter should have this configuration:

          {CornerSize: DesiredRadius, Rounded:[x, x, x, x]}

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          F 1 Reply Last reply Reply Quote 0
          • F
            Fergler @d.healey
            last edited by

            @d-healey Thank you! I’ve added it to a list of things I’ll push request to the documentation github

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

            19

            Online

            1.7k

            Users

            11.8k

            Topics

            103.0k

            Posts