HISE Logo Forum
    • Categories
    • Register
    • Login

    Rounded rectangle joints

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 232 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.
    • S
      Sawer
      last edited by

      Screenshot 2022-02-17 at 14.23.03.png

      Hello, want to try having a simple border. But the round joints are not "correct". I tried implementing even with the path function, but no result. Am I missing something? Any help is appreciated.

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

        @Sawer It's because the area needs to be 1px in from the edge.

        Compare the two examples in this snippet. The important part is the parameter in the this.getLocalBounds() call.

        HiseSnippet 842.3ocyVs0aSCCE1taYrVXHlD+.h5SoRip1BLPZBwVugpXWpVGS71vKwswZN1UwtaTg1+Tdlm4e.bbbaS1VUYqHjnOTkykub9NGeNGmtwRepRIiQ37mLdHEgehSuwBcXiPBSf5zDgepyADklF6ZUUe7PhRQCPX7Jevn.meUTxue995DNQ3SSUgPmJY9z8YQLcp1t69QFm2lDPOgEkw6WsaGeongjKGA7YEmJngD+KHCnGRLtkyAgWqU.SKi6oIZpB7otLXbuP4UBq+mxTry4TiPUTO3EYUiZDx3AcmlqJDBuZ2zLeEal+bmCXArY5Sq.OKwfaJhr0.btEQopO.JgyPoUsTZSmd9wrg5TKF97XmNB3.oOAJ0Yoh0WTtKy4zPBdHzkiHWPaGCByP3sckJa4B+UZmBEfxsR6dII1sKQP4Ucem6TjCn5FxngRAH3UzZtnAi8wxJptKTfzGKGoYBpW+QBeMSJ7FTpv2JjeP49vY7dbtm87TU9bNbXZdAfMk4kaT6oCYJSr7JxzzHqxhk.2xa7KHlbED.Q.M3XpulHFvoyfruzmvqarp7pTZK2ZPdUqzN4Kb8bRsZKN0pklZ09OK0pdqTaJabkhCkZ5QBuDVU35Bt21T+9y0loNDK4bZ7bMaFJiWDPOwnnyowaAUW9H5LGgt1aNJr18aTv2drjwQonifoOZHchbaIOvzhad9tCNnImqvSepSShlXlklnC7aHMVyLzA2jdIrLxNYk2oIUcgVND1qLqY.gejNw5FSm6LMDHFD50cr88nultup4tiyJbEKPGhvN3uChgT1fPsQ5GfTZC..XseA+Rv7.BbsLA9Kp+1.e2MMvNNYvHNQeyEelM7SL.s.2XaiYihPwziydCvCXaXkEtM79RwMc5xz9gymi4lCGgli+EbbxcHa3zpeeXbNkfq5z9yK6EF+gva2OM3.hNlAcGNGNJpGbR6SgnKfdFkoKHmoOyJWwHap.8nhfDASCwDiUMx3IFqN0HJh3GKOy2N3atkZ8DM.mDIWJmG95.P1sJJYY.fyoR4JnH3Byy78Mo+KfY14io1Rf4kKAlWsDXd8RfY6k.yaVBLucgXLeqxdizxH63.nnaqjshXbKAA5rR5BQ+FTeyAmO
        

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

        S 1 Reply Last reply Reply Quote 1
        • S
          Sawer @d.healey
          last edited by

          @d-healey Thanks, The frame itself is eating part of the path, If I got it.

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

          14

          Online

          1.7k

          Users

          11.9k

          Topics

          103.3k

          Posts