forked from viliusle/miniPaint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue viliusle#266 - Draw border by drawing lines through the points
- Constract all those points which are alinged on the edges of the image - Constract separate shapes by using the points above - Draw each shape through Canvas line drawing APIs
- Loading branch information
1 parent
ee6cc19
commit 8277c89
Showing
3 changed files
with
162 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8277c89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kmanaseryan this is what I'm seeing using latest method vs. Photoshop: https://i.imgur.com/McovnEk.png
8277c89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is Photoshop on left, Photopea.com on right (outside stroke 10px): https://i.imgur.com/Lz20IS7.png
You can seat that Photopea actually does have a little bit of stair-step on diagonal line (Photoshop does not), so maybe they are using some version of the algorythm you are using here?