Skip to content

Releases: Kyant0/Capsule

2.1.1

24 Oct 04:14

Choose a tag to compare

Start publishing on Maven Central

implementation("io.github.kyant0:capsule:<version>")

2.1.0

10 Sep 14:24

Choose a tag to compare

  • Add AbsoluteContinuousRoundedRectangle

2.0.1

09 Sep 03:51

Choose a tag to compare

  • Update capsule G2 profile to be rounder

2.0.0

04 Sep 02:13

Choose a tag to compare

  • Rename G2RoundedCornerShape with ContinuousRoundedRectangle, replace smoothness parameter with continuity.
  • Support G0 (cut corner), G1 (normal corner) and G2 (smooth corner) by GXContinuity.
  • In the G2Continuity class, the profile of normal rounded rectangle can be specified by profile parameter, and the profile of capsule can be specified by capsuleProfile parameter. 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.

1.0.2.4

26 Aug 01:56

Choose a tag to compare

Update default corner smoothness

1.0.1

14 Aug 01:51

Choose a tag to compare

Update dependencies to use stable version

1.0.0

09 Aug 03:42

Choose a tag to compare

Initial release