Commit graph

242 commits

Author SHA1 Message Date
Christopher Willis-Ford
0f6663f314 try WebGL 2.0 if WebGL 1.0 fails 2021-10-26 14:20:42 -07:00
DD Liu
01a4057fe3
Merge pull request from adroitwhiz/stamp-pen-layer-scale
Take render target dimensions into account when drawing
2021-06-29 17:07:45 -04:00
adroitwhiz
e25b8946bc Remove extractDrawable 2021-03-05 05:25:31 -05:00
adroitwhiz
438e0491b7 Pass size to _drawThese when extracting drawable 2020-11-13 18:31:21 -05:00
Chris Willis-Ford
c19971b219
Merge pull request from adroitwhiz/usenearest-skin
Move useNearest from Drawable to Skin
2020-11-13 13:03:35 -08:00
adroitwhiz
26fe38c0d8 Take render target size into account when drawing 2020-11-09 18:30:48 -05:00
adroitwhiz
5b36e937e2 Inline the last _getDrawableScreenSpaceScale call 2020-11-09 18:28:50 -05:00
seotts
1e5ce914a2 replace .apply() with spread 2020-11-09 17:05:56 -05:00
seotts
ad1831ebfa Don’t call hasOwnProperty directly on object 2020-11-09 17:05:56 -05:00
DD Liu
96f36ff50f
Merge pull request from adroitwhiz/update-silhouette-differently
Move `updateCPURenderAttributes` calls to where they're actually needed
2020-10-29 15:49:33 -04:00
adroitwhiz
26d2677409 Also pass in drawable to useNearest
This makes the code messier but I'm not sure what else to do since the
texture filtering method to be used depends on the drawable's properties
(e.g. transform, enabled effects). We still need to pass in the scale
separately because in the main rendering path, we multiply it by the
screen-space scale factor.
2020-09-30 17:05:17 -04:00
adroitwhiz
97605f9e55 Move useNearest to skin classes 2020-09-30 17:04:06 -04:00
DD Liu
931990bfca Revert "Revert "Put back in "Merge pull request from adroitwhiz/touching-white-fixes""" 2020-08-27 16:58:01 -04:00
DD Liu
0ae9cdd85c
Revert "Put back in "Merge pull request from adroitwhiz/touching-white-fixes"" 2020-08-27 15:17:40 -04:00
DD Liu
4a168693dd Merge branch 'develop' into pull676 2020-08-20 15:38:54 -04:00
Chris Willis-Ford
7356a5c0c7
Merge pull request from adroitwhiz/no-touching-bubbles
Don't include text bubbles in touching queries
2020-08-20 12:22:40 -07:00
DD Liu
00554dfb74 Handle null bounds 2020-08-11 18:51:32 -04:00
DD Liu
90040dfa55
Revert "Revert "Revert "Revert "Merge pull request from adroitwhiz/touching-white-fixes"""" 2020-08-11 16:12:52 -04:00
DD Liu
70fae9665a
Revert "Revert "Revert "Merge pull request from adroitwhiz/touching-white-fixes""" 2020-08-05 19:20:10 -04:00
DD Liu
b2346252f1
Revert "Revert "Merge pull request from adroitwhiz/touching-white-fixes"" 2020-08-04 16:31:10 -04:00
adroitwhiz
ade45c0363 Move CPU render updates only where they're needed 2020-07-24 13:19:09 -04:00
adroitwhiz
bc5969f89d
Merge pull request from adroitwhiz/extract-drawable-screen-space
Add extractDrawableScreenSpace method
2020-07-21 14:57:23 -04:00
adroitwhiz
116d147faf Revert "Merge pull request from adroitwhiz/touching-white-fixes"
This reverts commit a1ca2eb924, reversing
changes made to fcdcffeec8.
2020-07-16 15:07:16 -04:00
adroitwhiz
56f673972a Fix @type annotations so JSDoc doesn't complain 2020-07-14 16:36:12 -04:00
adroitwhiz
a1ca2eb924
Merge pull request from adroitwhiz/touching-white-fixes
Fix "touching color" for background color
2020-07-14 16:22:18 -04:00
adroitwhiz
1437574261 Comment extractDrawableScreenSpace better 2020-07-09 16:54:47 -04:00
adroitwhiz
a4e5f8e3b9 Re-disable ghost effect 2020-07-09 16:27:23 -04:00
adroitwhiz
ac935423af Don't include text bubbles in touching queries 2020-07-06 16:13:48 -04:00
adroitwhiz
d9c854f1fc Remove setRotationCenter API 2020-06-23 02:29:14 -04:00
adroitwhiz
19398fa67a Fix typo: "that half-pixel stil" 2020-06-17 16:09:19 -04:00
adroitwhiz
a2bc5a4974 Fix "drawable's bounds" comments 2020-06-17 16:07:24 -04:00
adroitwhiz
8db14c5094 Clean up background color stuff 2020-06-17 16:01:17 -04:00
Ryuurock
ab21dd106e Reduce unnecessary traversal 2020-06-11 15:54:06 -04:00
adroitwhiz
f09131ea64 Snap _candidatesTouching bounds to integer coords
When we construct bounds inside which we should loop over pixels, which
is done in _candidatesBounds, we expect their dimensions+position to be
integers when looping over them. If they aren't, weird things will occur
(e.g. "phantom" touching-color results depending on the precise subpixel
bounds position) that are not very fun to debug.
2020-06-10 17:24:05 -04:00
adroitwhiz
99ff2ba11e Fix touching color check for background color 2020-06-10 16:36:18 -04:00
adroitwhiz
de4073ce7d
Merge pull request from adroitwhiz/extract-drawable-delete-framebuffer
Delete framebuffer in extractDrawable
2020-06-04 17:00:21 -04:00
adroitwhiz
04cc67139e Delete framebuffer in extractDrawable 2020-06-02 16:01:31 -04:00
adroitwhiz
e7b1504117 Move matrix + silhouette updates into method 2020-05-19 16:02:12 -04:00
adroitwhiz
aaffc77b23 Clarify isTouchingColor ghost comment 2020-05-11 16:07:05 -04:00
adroitwhiz
d867e62c74 Don't apply ghost to "touching color" drawables 2020-05-11 16:07:05 -04:00
adroitwhiz
885f062449 Add extractDrawableScreenSpace method 2020-05-07 19:35:24 -04:00
adroitwhiz
fe91133565 Re-add link to 2.0's convex hull algorithm 2020-05-07 15:21:16 -04:00
adroitwhiz
70c64f035c Deobfuscate _getConvexHullPointsForDrawable 2020-05-05 16:25:38 -04:00
adroitwhiz
41e21ed129 Only resize canvas when necessary 2020-04-24 18:51:48 -04:00
adroitwhiz
6d28f42d57 Call draw() after resizing canvas 2020-04-24 16:20:11 -04:00
adroitwhiz
e9d6c1d13f Update drawables' matrix+silhouette for hull calc. 2020-04-15 04:51:34 -04:00
adroitwhiz
90b8f15d8c Un-premultiply extracted drawables 2020-02-04 22:32:04 -05:00
adroitwhiz
0cb97a202a Address review feedback 2020-01-24 05:28:20 -05:00
adroitwhiz
10a6d87eb6 Premultiplied alpha, take 2 2020-01-23 14:41:53 -05:00
Chris Willis-Ford
fed02ca582
Merge pull request from adroitwhiz/fix-vector-silhouette
Fix SVGSkin silhouettes
2020-01-13 14:34:52 -05:00