Skip to content

Diamond shape#93

Merged
lecho merged 2 commits intolecho:masterfrom
FedericoPonzi:diamond-shape
Mar 25, 2015
Merged

Diamond shape#93
lecho merged 2 commits intolecho:masterfrom
FedericoPonzi:diamond-shape

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

2 participants