Releases: Kyant0/Capsule
Releases Β· Kyant0/Capsule
2.1.1
2.1.0
2.0.1
2.0.0
- Rename
G2RoundedCornerShapewithContinuousRoundedRectangle, replacesmoothnessparameter withcontinuity. - Support G0 (cut corner), G1 (normal corner) and G2 (smooth corner) by
GXContinuity. - In the
G2Continuityclass, the profile of normal rounded rectangle can be specified byprofileparameter, and the profile of capsule can be specified bycapsuleProfileparameter. It has a smooth transition through the rounded rectangle and the capsule-like. - The following parameters are supported by
G2ContinuityProfile:- extended fraction: the transition length between original corner and line, relative to the corner radius
- arc fraction: the ratio of the arc to the corner
- Bezier curvature scale: the multiplier of the end curvature of the Bezier curve
- arc curvature scale: the multiplier of the arc curvature
Note: It guarantees G1 continuity at least. Only if the Bezier curvature scale equals the arc curvature scale, it will have exact G2 continuity.