Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Central symmetry of shapes #13

Closed
alexzhirkevich opened this issue Jan 5, 2023 · 3 comments
Closed

Central symmetry of shapes #13

alexzhirkevich opened this issue Jan 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@alexzhirkevich
Copy link
Owner

    How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top,  right top and left bottom eye side? 

unitag_qrcode_standard

Originally posted by @hardikbhalodi in #8 (comment)

@alexzhirkevich alexzhirkevich added the enhancement New feature or request label Jan 5, 2023
@alexzhirkevich
Copy link
Owner Author

alexzhirkevich commented Jan 5, 2023

Vector codes

From 1.5.5 central symmetry is enabled by default and can be changed with

val options = createQrVectorOptions {
    shapes(centralSymmetry = enabled){
        /// .....
    }
}

Or in builder :

val shapes = QrVectorShapes(
    centralSymmetry = enabled,
    frame = ...,
    ball = ...
)

Raster codes

Central symmetry was enabled by default from the beginning. Cannot be disabled.

@hardikbhalodi
Copy link

Thanks, i will check it out

@alexzhirkevich
Copy link
Owner Author

    How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top,  right top and left bottom eye side? 

unitag_qrcode_standard

Originally posted by @hardikbhalodi in #8 (comment)

Shape like this now can be created using bottomRight = false property in QrVectorFrameShape.RoundCorners and QrVectorBallShape.RoundCorners constructors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants