Custom borderRadius? e.g. `[0, 0, 5, 5]`
-
Is it possible to do Custom borderRadius? e.g.
borderRadius: [0, 0, 5, 5]
-
you can do
var borderRadius = 5; g.setColour(Colours.grey); g.fillRoundedRectangle([0, 0, 5, 5], borderRadius);
inside a paintRoutine for a panel, is that what you mean? If you mean a different radius for each corner, then I don't think so, best way might be to mask a panel with another panel
-
Here ya go
-
@rglides @daniloprates you can make custom corner radius per corner!
g.fillRoundedRectangle(a, {CornerSize: 20, Rounded:[1, 1, 0, 0]});
//you could do this: //Play with these values and see what you get. const var myCorners = {CornerSize: 20, Rounded:[1, 1, 0, 0]}; g.fillRoundedRectangle(a, myCorners);
got this from @d-healey of course
**and ofcourse he beat me to it. lol so I'll leave this here anyways.
-
@Chazrox wow did not know that! cool cool
-
@rglides yeah this one changed the game for me making tabs n stuff like that.
-
@Chazrox fr, gonna mess around a bit now