Commit Graph

86 Commits

Author SHA1 Message Date
Hajime Hoshi
fbf40a4455 vector: bug fix: isPointCloseToSegment didn't work when two p0 and p1 are the same
Closes #3061
2024-08-10 17:13:09 +09:00
Hajime Hoshi
fc37cdedeb vector: reuse previous allocated subpaths
Closes #3060
2024-08-10 15:13:23 +09:00
Hajime Hoshi
309c886c2e vector: use value type for subpath
Updates #3060
2024-08-10 15:04:13 +09:00
Hajime Hoshi
68380e506e vector: reduce memory allocations by reusing the same Path objects 2024-08-10 14:02:49 +09:00
Hajime Hoshi
cdb430b2a5 vector: reduce allocations 2024-08-10 05:35:29 +09:00
Hajime Hoshi
071024e89f vector: reduce memory allocations in the utility functions 2024-08-10 05:11:46 +09:00
Hajime Hoshi
38b8ba5677 vector: lazy point calculation
This is a preparation for #2884.

Updates #2884
2024-08-10 04:09:39 +09:00
Hajime Hoshi
b121468991 ebiten: add FillRuleFillAll, FillRuleEvenOdd, and FillRuleNonZero
This change also deprecates the existing constants.

Closes #3006
2024-06-08 17:58:33 +09:00
Hajime Hoshi
230619a036 vector: allow NonZero for AppendVerticesAndIndicesForStroke
Closes #2833
2024-03-23 18:51:25 +09:00
Şeta Narut
87c1766451
vector: typo (segument -> segment) (#2860) 2023-12-12 23:38:43 +09:00
Hajime Hoshi
3ca6184294 ebiten: add a new FillRule: NonZero
Closes #2782
2023-11-06 12:11:38 +09:00
Hajime Hoshi
e3ab7b979f vector: update comments 2023-05-10 16:10:38 +09:00
Hajime Hoshi
a9464c7d71 vector: bug fix: compile error for tests 2023-03-18 11:13:21 +09:00
Hajime Hoshi
8bd7ce5c20 vector: add anti-alias options to the utility functions
Closes #2606
2023-03-18 11:01:48 +09:00
Hajime Hoshi
051b0c7238 internal/ui: bug fix: a big-offscreen size could be 0
Closes #2589
2023-03-03 22:34:43 +09:00
Hajime Hoshi
c76201090a vector: use WritePixels instead of Fill for whiteImage 2023-03-01 15:26:07 +09:00
Pierre Curto
4de807cc44
all: fix typos (#2558)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Pierre Curto
abd293fae6
text, vector: fix typos and redundant casts (#2537) 2023-01-13 03:28:41 +09:00
Hajime Hoshi
8d854cbb82 ebiten: rename ColorSclaeFormat -> ColorScaleMode 2022-11-01 13:09:52 +09:00
Hajime Hoshi
6ba14fdb00 vector: rename functions
Fill* was confusing especially when the color is a transparent color.

Closes #2403
2022-10-22 20:29:31 +09:00
Hajime Hoshi
c34c072efa vector: change the specificatino of Path.ArcTo
Closes #2401
2022-10-22 02:03:27 +09:00
Hajime Hoshi
5e15bafde8 vector: add FillCircle and StrokeCircle
Updates #2387
2022-10-22 01:24:51 +09:00
Hajime Hoshi
fa942c824f vector: avoid adding too close points
Rendering a very thick arc caused some glitches. This change should
mitigate this issue.
2022-10-22 01:16:47 +09:00
Hajime Hoshi
6f7b1a81d7 vector: add StrokeLine, FillRect, and StrokeRect
Updates #2387
2022-10-21 22:35:01 +09:00
Hajime Hoshi
dbfacb243a vector: bug fix: Arc added unexpected lines from (0, 0)
This change removes Path.cur.
2022-10-21 22:12:48 +09:00
Hajime Hoshi
436bfdb06b vector: update comments 2022-10-21 20:42:13 +09:00
Hajime Hoshi
9e6a1d7ad1 vector: update comments 2022-10-21 20:38:41 +09:00
Hajime Hoshi
6113afae46 vector: bug fix: LineTo should consider the current cursor 2022-10-21 19:25:20 +09:00
Hajime Hoshi
a75472b524 vector: add (*Path).Close
Updates #2387
2022-10-21 18:16:48 +09:00
Hajime Hoshi
9a82e5cf86 vector: add a comment about blend
Updates #2396
2022-10-18 23:50:56 +09:00
Hajime Hoshi
d2f6d8593b vector: add LineCap
Closes #1843
2022-10-15 00:40:28 +09:00
Hajime Hoshi
225bf1bbb4 vector: add StrokeOptions.MiterLimit 2022-10-14 23:25:59 +09:00
Hajime Hoshi
04680ff761 vector: refactoring 2022-10-14 22:56:15 +09:00
Hajime Hoshi
a1a598471b vector: add LineJoin
Updates #1843
2022-10-14 22:11:00 +09:00
Hajime Hoshi
f5ae18d6f6 vector: add comments 2022-10-14 19:06:33 +09:00
Hajime Hoshi
1ff55bc745 vector: remove redundant MoveTo 2022-10-11 01:18:18 +09:00
Hajime Hoshi
84452b0bf8 vector: remove redundant LineTo calls before Arc 2022-10-11 01:17:13 +09:00
Hajime Hoshi
2322acbd9c Revert "vector: improve quality of lines by removing holes"
This reverts commit ccfedeea1d.

Reason: This affects the result of the line ends
2022-10-11 00:28:24 +09:00
Hajime Hoshi
ccfedeea1d vector: improve quality of lines by removing holes 2022-10-11 00:12:35 +09:00
Hajime Hoshi
69c8fd745b vector: add AppendVerticesAndIndicesForStroke
Updates #1843
2022-10-10 23:19:29 +09:00
Hajime Hoshi
a57042ebef vector: bug fix: wrong base index
Closes #2379
2022-10-10 18:07:13 +09:00
Vivek Murali
084ba6bbd1
vector: fix spelling error in vector/path.go (#2078) 2022-04-24 12:14:18 +09:00
Hajime Hoshi
b2e38894e0 vector: Fix comments 2021-09-26 01:13:00 +09:00
Hajime Hoshi
a9241a45c6 vector: Add Dir
Updates #844
2021-07-17 16:42:14 +09:00
Hajime Hoshi
70ef5e7d5b vector: Add Arc
Updates #844
2021-07-17 01:34:06 +09:00
Hajime Hoshi
873bb35587 vector: Add ArcTo
Updates #844
2021-07-16 22:52:32 +09:00
Hajime Hoshi
cea0aa72cb vector: Rename AppendVerticesAndIndices to AppendVerticesAndIndicesForFilling
Updates #844
2021-07-16 17:20:09 +09:00
Hajime Hoshi
e24eecd4a6 vector: Improve the quality of QuadTo and CubicTo
Updates #844
2021-07-16 17:11:38 +09:00
Hajime Hoshi
9e024dc337 vector: Rename arguments 2021-07-14 23:25:59 +09:00
Hajime Hoshi
315f87896b vector: Better interpolation of Bézier curves
Updates #844
2021-07-06 03:30:33 +09:00