507 Commits

Author SHA1 Message Date
adroitwhiz
e075e5f5eb Add unit tests for color conversion functions 2021-02-11 18:41:20 -05:00
Chris Willis-Ford
c19971b219
Merge pull request #566 from adroitwhiz/usenearest-skin
Move useNearest from Drawable to Skin
2020-11-13 13:03:35 -08:00
Sarah Otts
00710f3347
Fix spacing in 'You clicked on' console log 2020-11-10 09:28:26 -05:00
seotts
1e5ce914a2 replace .apply() with spread 2020-11-09 17:05:56 -05:00
seotts
65fca3e3c7 fix lint errors in playground 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 #624 from adroitwhiz/update-silhouette-differently
Move `updateCPURenderAttributes` calls to where they're actually needed
2020-10-29 15:49:33 -04:00
DD Liu
98caee67c3
Merge pull request #557 from adroitwhiz/penskin-cleanup
Clean up PenSkin code
2020-10-29 15:25:58 -04:00
Chris Willis-Ford
4ebea93adf
Merge pull request #445 from adroitwhiz/optimize-transformed-hull
Cache and don't re-create transformed hull points
2020-10-08 12:46:53 -07:00
adroitwhiz
205a8c9131 Use draw region for accessing pen framebuffer 2020-09-30 17:20:39 -04:00
adroitwhiz
8ac7ed20da Clean up PenSkin code 2020-09-30 17:09:49 -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
f4d5e52a8f Clarify SVGSkin.useNearest comments 2020-09-30 17:04:08 -04:00
adroitwhiz
97605f9e55 Move useNearest to skin classes 2020-09-30 17:04:06 -04:00
DD Liu
ce288ea11a link to file 2020-08-27 17:28:03 -04:00
DD Liu
ffa53a66df Fix syntax and bump the error allowance 2020-08-27 16:58:30 -04:00
DD Liu
931990bfca Revert "Revert "Put back in "Merge pull request #489 from adroitwhiz/touching-white-fixes""" 2020-08-27 16:58:01 -04:00
DD Liu
0ae9cdd85c
Revert "Put back in "Merge pull request #489 from adroitwhiz/touching-white-fixes"" 2020-08-27 15:17:40 -04:00
DD Liu
63513a924c Add back todo as well 2020-08-25 20:07:40 -04:00
DD Liu
13d62bd75a Add back clamping in sampleColor4b, and handling of values near zero in getLocalPosition 2020-08-25 03:26:30 -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 #654 from adroitwhiz/no-touching-bubbles
Don't include text bubbles in touching queries
2020-08-20 12:22:40 -07:00
Chris Willis-Ford
60a2ea8b45
Merge pull request #574 from adroitwhiz/fixelate
Fix pixelate effect on CPU path
2020-08-17 12:39:12 -07:00
Chris Willis-Ford
50ff576bc5
Merge pull request #542 from adroitwhiz/effect-transform-parity
Update EffectTransform.transformColor to match GPU "color" + "brightness" effects
2020-08-17 12:13:36 -07:00
Chris Willis-Ford
310f6b5d2d
move hue modulo into hsvToRgb
this makes it safer to call hsvToRgb without worrying about h=1, which previously caused incorrect results
2020-08-17 12:06:46 -07:00
DD Liu
b0acea9f35 Pull in parts of pull 479 which move clamping to texture space into silhouette 2020-08-13 14:53:13 -04:00
DD Liu
5fa9c765d7 Change local space to clamp to texture space in is touching queries 2020-08-13 14:06:37 -04:00
DD Liu
749b110301 Add todo 2020-08-13 13:14:48 -04:00
DD Liu
b119d359bb Fix floating point issues near 0 2020-08-13 00:50:43 -04: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 #489 from adroitwhiz/touching-white-fixes"""" 2020-08-11 16:12:52 -04:00
DD Liu
70fae9665a
Revert "Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes""" 2020-08-05 19:20:10 -04:00
DD Liu
46274c7908
Merge pull request #649 from adroitwhiz/no-vector-blur
Always use SVG mipmaps that match or exceed the skins' screen-space size
2020-08-04 17:17:03 -04:00
DD Liu
b2346252f1
Revert "Revert "Merge pull request #489 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
0babe1e0cb
Merge pull request #664 from adroitwhiz/alias-istouching
Move isTouching logic to updateCPURenderAttributes
2020-07-23 17:04:26 -04:00
adroitwhiz
ffddd7fba6
Merge pull request #667 from adroitwhiz/fix-safari-pen-again
Move pen point difference calculation from shader code to JS
2020-07-23 16:42:03 -04:00
adroitwhiz
8b45114a57 Move pen point difference calculation to JS
I'm giving up on coding and becoming a farmer. I hate this code so much
2020-07-23 03:15:31 -04:00
adroitwhiz
151e8182b0 Move isTouching logic to updateCPURenderAttributes 2020-07-21 15:40:48 -04:00
adroitwhiz
bc5969f89d
Merge pull request #568 from adroitwhiz/extract-drawable-screen-space
Add extractDrawableScreenSpace method
2020-07-21 14:57:23 -04:00
adroitwhiz
116d147faf Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes"
This reverts commit a1ca2eb9240af25808f62286e1272ae759378640, reversing
changes made to fcdcffeec899643fee3a4c5a3bccd668e9a2f0af.
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 #489 from adroitwhiz/touching-white-fixes
Fix "touching color" for background color
2020-07-14 16:22:18 -04:00
adroitwhiz
7a6b3c55aa
Apply suggestions from code review
Co-authored-by: Chris Willis-Ford <7019101+cwillisf@users.noreply.github.com>
2020-07-14 16:17:12 -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
75a4792f93 Cache and don't re-create transformed hull points 2020-06-25 16:33:22 -04:00
adroitwhiz
d9c854f1fc Remove setRotationCenter API 2020-06-23 02:29:14 -04:00
adroitwhiz
0d86ec92ed Don't blur vector skins 2020-06-22 17:33:45 -04:00