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

Separate painting mode #35

Merged
merged 12 commits into from
Jul 12, 2023
Merged

Separate painting mode #35

merged 12 commits into from
Jul 12, 2023

Conversation

alexzhirkevich
Copy link
Owner

@alexzhirkevich alexzhirkevich commented Jul 5, 2023

Separate painting mode

Adds separate mode for drawing elements (as a property of a QrVectorColor).
New default color - QrVectorColor.SolidRandom - allows to pick a random color from a set with declared probabilities

Perfomance optimization

Since using separate painting mode required a lot more objects to allocate, createPaint and createPath were replaced with Paint.paint and Path.shape methods that reuse allocated objects.

Will require a little manual migration if custom colors/shapes were used

New

Rect shape with size


Closes #29
Closes #33
Closes #34

@alexzhirkevich alexzhirkevich changed the base branch from main to v2.0 July 10, 2023 10:07
@alexzhirkevich alexzhirkevich marked this pull request as ready for review July 12, 2023 23:39
@alexzhirkevich alexzhirkevich merged commit aa2e26b into v2.0 Jul 12, 2023
@alexzhirkevich alexzhirkevich deleted the separate_painting branch July 13, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant