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

Diamond shape #93

Merged
merged 2 commits into from
Mar 25, 2015
Merged

Diamond shape #93

merged 2 commits into from
Mar 25, 2015

Conversation

FedericoPonzi
Copy link

Adds support for diamond shape.
image

lecho added a commit that referenced this pull request Mar 25, 2015
@lecho lecho merged commit c073645 into lecho:master Mar 25, 2015
@lecho
Copy link
Owner

lecho commented Mar 25, 2015

Thanks:)

@FedericoPonzi
Copy link
Author

You're welcome! :) Thanks for the great library! 👍

@lecho
Copy link
Owner

lecho commented Mar 25, 2015

:)
btw. I found out that drawing square on rotated canvas(by 45 degrees) takes about the same time but is a little less code:

canvas.save();
canvas.rotate(45, rawX, rawY);
canvas.drawRect(rawX - pointRadius, rawY - pointRadius, rawX + pointRadius, rawY + pointRadius, pointPaint);
canvas.restore();

@FedericoPonzi
Copy link
Author

Nice! :D

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

Successfully merging this pull request may close these issues.

2 participants