fillRoundedRectangle cornerData JSON obj formatting ?
-
https://docs.hise.audio/scripting/scripting-api/graphics/index.html#fillroundedrectangle
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!
-
I think its an array of radii.. e.g. [6,0,0,6]
-
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]}
-
@d-healey Thank you! I’ve added it to a list of things I’ll push request to the documentation github