HISE Logo Forum
    • Categories
    • Register
    • Login

    Is it possible to draw a curved line with panel paint routine?

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 544 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.
    • M
      mehmethand
      last edited by

      Hi, I want to draw a curved line inside a panel. I checked the API but I couldn't find a way to do it. there is only api for drawing straight line. Is there a way to do it? Thank you.

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

        @mehmethand drawArc

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

        M 1 Reply Last reply Reply Quote 0
        • M
          mehmethand @d.healey
          last edited by

          thank you David there is no drawArc in the list.I couldn't find it in the documentation, too. How am I going to use it?

          Screen Shot 2022-07-22 at 21.41.30.png

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

            Sorry I wasn't at my computer. It's addArc - https://docs.hise.audio/scripting/scripting-in-hise/scriptpanel.html#a-vectorized-knob

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

            M 1 Reply Last reply Reply Quote 0
            • M
              mehmethand @d.healey
              last edited by mehmethand

              @d-healey I checked it, it seems very complicated for my skills. Do you have a simple example of addArc function for drawing a simple curved line?

              d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
              • d.healeyD
                d.healey @mehmethand
                last edited by

                @mehmethand said in Is it possible to draw a curved line with panel paint routine?:

                @d-healey I checked it, it seems very complicated for my skills. Do you have a simple example of addArc function for drawing a simple curved line?

                Trigonometry is not one of my strengths. I just use examples I find on the forum and go from there. Search for addArc.

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

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @d.healey
                  last edited by

                  Check quadraticTo, this is as simple as it can get.

                  d.healeyD 1 Reply Last reply Reply Quote 1
                  • d.healeyD
                    d.healey @Christoph Hart
                    last edited by

                    @Christoph-Hart said in Is it possible to draw a curved line with panel paint routine?:

                    Check quadraticTo, this is as simple as it can get.

                    Oo is that recent?

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

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @d.healey
                      last edited by

                      @d-healey No, that is sitting there right from the beginning.

                      1 Reply Last reply Reply Quote 1
                      • ulrikU
                        ulrik @mehmethand
                        last edited by

                        @mehmethand a simple a example using "quadraticTo"

                        play with the values and see what happens

                        Skärmavbild 2022-07-23 kl. 09.19.18.png

                        HiseSnippet 840.3ocsU01aSCCD1oaAHkWDHwOfn8oLoQIc7pDBwXcanJXiH5.w2PdNtMVKwNXegREh+xH9G.mcRWyfpATIxGZ88xi8cmetyIZEiaLJMwK33Ykbh207GMSBYCxnBIY3dDua3eH0.bcXspcmURMFdJwyasWXU3ErNw888msKMmJY7EpHj2oDL9qDEBXg1jcdoHO+.ZJ+XQQKuu+NCYJ4.UtpBim07iIkT1ozI7inV253S7tz9oBPoGATfaPe1UkNaTlZpr1+2ILhSx4Vg9jQ3FUqlLHSjmlLOWMDh25IKx70py7a6enHUbl9EUfa5LDt.Q6ZfWmKJj5+ODRdsBo0qCoa4OhoEkvBK134p9Ck3ExXJVpaGJ09R57MO+AJzCIzqfdJ+.MJbFhnGFGuUH9ylOoKVsMP3mn5vDpjmG9zv43lvgAphRkDEh1vYcCDPW2pdFNjfEG3MpJPH4QiqjLPnjQS1r6W5FX2vxVaFSywZSBExhv8HnrGKmS0t0S5MFoBOOOOZi3Ou81ice1SJnavcuafEiEfAnZ3H9zQUm31FLChq2pOVQS0TPvNVEE26And6O8araO.iMUrTpn5+L8llI.d8oiXm51wxsBgLgwl3uRwn46ppjoln3M2Jbaz0ut4SlmjgJ4QJf+ZYjKY690tg+powiWpMa8Pqxy45kZ11LnuHfQxphS35svar7J9YNhrkySAuzeGEjUe8zxQkbnT.utj2HefJO0Rsrq+cBKo49EW81g6QApkC2nC8qjqAgMb71i+IbHPMiNveOt4TPU57sggggL3rd847cKMiHvi9x90q+7hwDhcl0VXpHExZqHiKljAs0P98NKrmVkVkSgy2namn0X.K8mq6x1AIMBXV6Id+Cc+wWX2+eaHdK+DAvxVdL1YIwHdo7+HFalYdc+8GOlyfEA359G79Uc.4e33qG2L4PJnEHev+nphQXCMiimtDII3l660wRLqkisx1JvHtL0I7C7qwXeqrWiw9yMRJnLs5Cr5FN6T4q3zfwjz8HT.9ZHJG1m3ZBQb9w8hIE3CDefwro+cvdkkiY6U.y8VAL2eEv7fU.yCWALOZEv73KDi8s4mWAph51ATQx9toQdd6KoHyxwBI+z92j1t
                        

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

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

                        18

                        Online

                        1.7k

                        Users

                        11.9k

                        Topics

                        103.6k

                        Posts