griffpatch
3380aa938f
Fix for Touching color white always returns "true" #710
...
So the issue is simple... We start by filling the detector canvas with
the color white, then layer over this the costumes we are want to detect
white colors in (but clip to the shape of the costumre we are detecting
against) then the areas that were clipped will still be white (the
background fill color). So we detect white no matter what.
2017-11-14 08:29:01 +00:00
Michael "Z" Goddard
b060c07db1
Compare new setRotationCenter values after truncating to 32bit
...
`Skin._rotationCenter` is a twgl vector or said another way a
Float32Array. JavaScript casts values stored in this array as 32 bit
floats instead of JavaScript's standard 64 bit floats. Comparing the
equality, like `setRotationCenter` does, of a 64 bit float against a
value stored in a 32 bit container will virtually always be false.
Truncating the new value into a 32 bit (losing precision) will give a
more useful comparison and remove a lot of current false positives.
2017-11-07 17:33:21 -05:00
Paul Kaplan
998d3e129a
Merge pull request #181 from paulkaplan/fix-stroke-measurement
...
Use zero if cannot parse stroke width
2017-10-12 16:33:09 -04:00
Paul Kaplan
be1306387d
Use zero if cannot parse stroke width
2017-10-12 15:59:45 -04:00
Paul Kaplan
b84721d5b3
Merge pull request #177 from paulkaplan/say-think
...
Say/think bubble SVG templates
2017-10-11 14:19:53 -04:00
Paul Kaplan
04e9d6c414
Change toString to buildString
2017-10-11 13:41:42 -04:00
Paul Kaplan
f989c80f20
Merge pull request #176 from paulkaplan/text-wrapping
...
Add utils for text wrapping, originally by CWF
2017-10-11 13:32:17 -04:00
Paul Kaplan
69ae065b92
Text bubble rendering
2017-10-10 09:09:23 -04:00
Paul Kaplan
ebe2db2e02
Add utils for text wrapping, originally by CWF
2017-10-10 09:06:38 -04:00
Paul Kaplan
0b3e7c37c2
Merge pull request #179 from paulkaplan/fix-bbox-strokes
...
Enlarge bounding box by the largest stroke width.
2017-10-06 16:28:51 -04:00
Paul Kaplan
ab4046b852
Only enlarge by half stroke width on either side
2017-10-05 13:30:01 -04:00
Paul Kaplan
3565c95f83
Enlarge bounding box by largest stroke width.
2017-10-05 11:03:23 -04:00
greenkeeper[bot]
b2b3e815b6
chore(package): update eslint-config-scratch to version 5.0.0
2017-10-05 14:05:10 +00:00
Chris Willis-Ford
77c163e569
Merge pull request #173 from LLK/greenkeeper/webpack-dev-server-2.8.2
...
chore(package): update webpack-dev-server to version 2.8.2
2017-09-18 12:38:11 -07:00
greenkeeper[bot]
ecbf91039c
chore(package): update webpack-dev-server to version 2.8.2
2017-09-14 19:51:36 +00:00
Chris Willis-Ford
93aa64c89f
Merge pull request #171 from LLK/greenkeeper/twgl.js-3.7.0
...
Update twgl.js to the latest version 🚀
2017-09-14 12:32:03 -07:00
Chris Willis-Ford
1b282ea5d0
Merge pull request #170 from LLK/greenkeeper/babel-eslint-8.0.0
...
Update babel-eslint to the latest version 🚀
2017-09-14 12:28:43 -07:00
greenkeeper[bot]
ecfc6429b8
chore(package): update jsdoc to version 3.5.5
2017-09-14 03:15:59 +00:00
greenkeeper[bot]
303a1840ef
chore(package): update twgl.js to version 3.7.0
2017-09-13 14:06:52 +00:00
greenkeeper[bot]
9368724da5
chore(package): update babel-eslint to version 8.0.0
2017-09-12 17:31:06 +00:00
Chris Willis-Ford
c0d0e78bbb
Merge pull request #162 from joshlory/color-touching-tolerance
...
Match Scratch 2.0 threshold for `isTouchingColor`
2017-09-06 17:48:12 -06:00
Chris Willis-Ford
2a9aee5014
Merge pull request #167 from LLK/greenkeeper/twgl.js-3.5.0
...
chore(package): update twgl.js to version 3.5.0
2017-09-06 17:42:16 -06:00
Chris Willis-Ford
1e54b1c894
Merge branch 'develop' into greenkeeper/twgl.js-3.5.0
2017-09-06 16:17:26 -06:00
Chris Willis-Ford
8248eb498d
Merge pull request #166 from LLK/greenkeeper/webpack-3.5.6
...
chore(package): update webpack to version 3.5.6
2017-09-06 16:08:15 -06:00
Chris Willis-Ford
e60c0202d8
Merge pull request #140 from LLK/greenkeeper/gh-pages-1.0.0
...
Update gh-pages to the latest version 🚀
2017-09-06 16:01:56 -06:00
Chris Willis-Ford
c9b760c869
Merge branch 'develop' into greenkeeper/gh-pages-1.0.0
2017-09-06 15:55:19 -06:00
Chris Willis-Ford
5d5ac5d66b
Merge pull request #157 from LLK/greenkeeper/eslint-config-scratch-4.0.0
...
Update eslint-config-scratch to the latest version 🚀
2017-09-06 15:54:00 -06:00
Christopher Willis-Ford
737a94b04b
Lint fixes
2017-09-06 15:50:01 -06:00
Chris Willis-Ford
f62ab0f689
Merge branch 'develop' into greenkeeper/eslint-config-scratch-4.0.0
2017-09-06 15:32:08 -06:00
Chris Willis-Ford
9221fcec83
Merge pull request #165 from LLK/greenkeeper/eslint-4.6.1
...
chore(package): update eslint to version 4.6.1
2017-09-06 15:28:32 -06:00
Christopher Willis-Ford
49f7b06dbe
Lint fixes
2017-09-06 15:23:28 -06:00
Chris Willis-Ford
5c18436f20
Merge pull request #164 from LLK/greenkeeper/babel-loader-7.1.2
...
chore(package): update babel-loader to version 7.1.2
2017-09-06 15:10:39 -06:00
Chris Willis-Ford
34fe5435be
Merge pull request #161 from joshlory/drawable-scale-tests
...
Add Drawable.prototype.getAABB coverage for scale transforms
2017-09-06 13:46:48 -06:00
Paul Kaplan
d59089e1b5
Merge pull request #159 from paulkaplan/color-picking
...
Add color extraction method to renderer
2017-09-06 13:54:08 -04:00
Paul Kaplan
ca0004f043
Fix clear color
2017-09-06 13:50:22 -04:00
greenkeeper[bot]
c25ac78e98
chore(package): update webpack to version 3.5.6
...
Closes #146
2017-09-06 17:05:50 +00:00
Paul Kaplan
471f03e310
Fixup from CWF comments on blending
2017-09-05 15:29:37 -04:00
greenkeeper[bot]
1487f79f58
chore(package): update eslint to version 4.6.1
...
Closes #147
2017-09-04 00:11:03 +00:00
DD Liu
ef7f1d2558
Merge pull request #163 from fsih/updateSvg2
...
Update references to the old skin
2017-08-31 17:17:54 -04:00
DD
553af92910
Update references to the old skin
2017-08-31 17:04:05 -04:00
DD Liu
4d04f3c646
Merge pull request #160 from fsih/updateSvg
...
Add updateSVGSkin
2017-08-31 13:17:49 -04:00
DD
fa12b523c9
Don't change the skin ID when making a new one
2017-08-31 11:38:44 -04:00
Josh Lory
1cfaf57e8b
Match Scratch 2.0 threshold for isTouchingColor
2017-08-30 21:21:27 -07:00
Josh Lory
1ec7c046c9
Add Drawable.prototype.getAABB coverage for scale transforms
2017-08-30 20:46:27 -07:00
Chris Willis-Ford
9736ced8df
Merge pull request #155 from joshlory/drawable-aabb-tests
...
Add initial test coverage for Drawable.prototype.getAABB
2017-08-30 16:56:11 -07:00
DD
29366df1d0
Make updateSVGSkin work when converting from bitmap to SVG
2017-08-30 18:24:56 -04:00
DD
66f362faed
Add updateSVGSkin
2017-08-30 17:47:13 -04:00
greenkeeper[bot]
7e78f84fa6
chore(package): update twgl.js to version 3.5.0
...
Closes #141
2017-08-29 09:36:11 +00:00
Paul Kaplan
c33f0e46ce
Add color extraction method to renderer
2017-08-25 10:05:46 -04:00
Chris Willis-Ford
a23287ab5a
Merge pull request #138 from a49594a/patch-2
...
fix the bug #131 Rotation center is incorrect while sprite is scaled by "changeSize" block or "setSize" block
2017-08-24 10:02:35 -07:00