Rounded rectangle joints
-
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.
-
@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
-
@d-healey Thanks, The frame itself is eating part of the path, If I got it.