Karishma Chadha
27c70a7542
Merge pull request #463 from LLK/greenkeeper/scratch-svg-renderer-0.2.0-prerelease.20190523193400
...
Update scratch-svg-renderer to the latest version 🚀
2019-06-05 11:02:10 -04:00
Benjamin Wheeler
a79df7af59
Merge pull request #466 from LLK/revert-423-more-circular-pen-dots
...
Revert "Tweak scalingVector to make dots appear to be more circular"
2019-05-30 11:58:22 -04:00
Benjamin Wheeler
ed6c707cba
Revert "Tweak scalingVector to make dots appear to be more circular"
2019-05-30 11:50:54 -04:00
Chris Willis-Ford
6bdaebcb3b
Merge pull request #426 from adroitwhiz/playground-improvements
...
Playground improvements
2019-05-28 16:10:36 -07:00
Chris Willis-Ford
8b54df18af
Merge pull request #423 from ktbee/more-circular-pen-dots
...
Tweak scalingVector to make dots appear to be more circular
2019-05-28 15:39:34 -07:00
Paul Kaplan
e98fb37434
Merge pull request #451 from adroitwhiz/canvas-text-bubble
...
Implement canvas-based TextBubbleSkin
2019-05-24 08:54:11 -04:00
greenkeeper[bot]
c3d07db39a
fix(package): update scratch-svg-renderer to version 0.2.0-prerelease.20190523193400
2019-05-23 19:37:48 +00:00
Karishma Chadha
5ef4ae63ba
Merge pull request #458 from LLK/greenkeeper/scratch-svg-renderer-0.2.0-prerelease.20190521170426
...
Update scratch-svg-renderer to the latest version 🚀
2019-05-22 17:29:49 -04:00
adroitwhiz
ab14e224d6
add default fudge min/max values
2019-05-22 05:02:44 -04:00
adroitwhiz
1a5bd39f77
replace janky boolean logic
2019-05-22 05:01:16 -04:00
adroitwhiz
e478ad4590
es6ify playground.js
2019-05-22 04:58:06 -04:00
greenkeeper[bot]
f5ddc24c7e
fix(package): update scratch-svg-renderer to version 0.2.0-prerelease.20190521170426
2019-05-21 17:05:46 +00:00
adroitwhiz
c313f6ac89
fix documentation
2019-05-18 00:46:09 -04:00
Katie Broida
9fc82a8fc3
Tweak scalingVector to make dots appear to be more circular instead of oval
2019-05-13 13:27:08 -04:00
adroitwhiz
e8d30d7629
Merge branch 'develop' of https://github.com/LLK/scratch-render into playground-improvements
2019-05-05 16:52:05 -04:00
adroitwhiz
fab2a52a96
build's fixed 🦀
2019-05-05 16:46:13 -04:00
adroitwhiz
7bb8b3829e
roundBounds! it does nothing!
2019-05-05 03:06:04 -04:00
adroitwhiz
b60b2aadde
wait, is the build fixed?
2019-05-01 02:16:38 -04:00
adroitwhiz
e8fb7daaec
remove no-longer-applicable unit test
2019-04-30 23:04:26 -04:00
adroitwhiz
57e40e20ab
Revert playground changes
2019-04-30 22:56:17 -04:00
adroitwhiz
1021877ba6
Canvas-based TextBubbleSkin
2019-04-30 22:51:43 -04:00
Chris Willis-Ford
4a55d63ada
Merge pull request #424 from ktbee/limit-mosaic-effect
...
Only check position against effect transform if it falls within the Drawable's space
2019-04-29 17:19:51 -07:00
Chris Willis-Ford
c9c780aa69
Merge pull request #418 from peabrainiac/develop
...
pen transparency fix
2019-04-29 17:04:15 -07:00
adroitwhiz
b92354b1bf
Merge branch 'develop' of https://github.com/LLK/scratch-render into playground-improvements
2019-04-23 13:21:41 -04:00
adroitwhiz
6c8b5bc2a9
Fix webpack glob
2019-04-23 13:21:40 -04:00
Paul Kaplan
590c2ca084
Merge pull request #440 from LLK/revert-419-coordinates-fixups-2
...
Revert "Adjust CPU `isTouchingColor` to match GPU results (again)"
2019-04-19 16:14:10 -04:00
Paul Kaplan
757d7e3c96
Revert "Adjust CPU isTouchingColor
to match GPU results (again)"
2019-04-19 16:13:47 -04:00
Paul Kaplan
e365a909dc
Merge pull request #439 from LLK/greenkeeper/scratch-svg-renderer-0.2.0-prerelease.20190419183947
...
fix(package): update scratch-svg-renderer to version 0.2.0-prerelease…
2019-04-19 16:03:53 -04:00
greenkeeper[bot]
bffe80086e
fix(package): update scratch-svg-renderer to version 0.2.0-prerelease.20190419183947
...
Closes #430
2019-04-19 18:45:16 +00:00
adroitwhiz
95a3c0dc6f
Appease ESLint
2019-04-19 13:50:52 -04:00
adroitwhiz
05928eb400
Add very basic pen testing to playground
2019-04-19 13:44:47 -04:00
Chris Willis-Ford
008dc5b15b
Merge pull request #419 from cwillisf/coordinates-fixups-2
...
Adjust CPU `isTouchingColor` to match GPU results (again)
2019-04-10 11:35:25 -07:00
adroitwhiz
924050baaf
Merge branch 'develop' of https://github.com/LLK/scratch-render into playground-improvements
2019-03-29 10:19:41 -04:00
adroitwhiz
0b9ee47fa1
Add "Scale (both)" option and fix quotes
2019-03-29 10:19:37 -04:00
Michael "Z" Goddard
9177705e04
Merge pull request #414 from mzgoddard/image-data-texture
...
ImageData WebGL Textures
2019-03-26 12:12:57 -04:00
adroitwhiz
3e710e66ec
Move playground style rules into stylesheet
2019-03-24 03:03:51 -04:00
adroitwhiz
2f14126d0b
Add stage scale slider to playground
2019-03-24 02:50:11 -04:00
adroitwhiz
4e9223adc6
More fixes for loading in playground
2019-03-24 02:43:15 -04:00
adroitwhiz
5419d3d2c3
Use updated Scratch cat SVG in playground
2019-03-24 02:42:13 -04:00
adroitwhiz
d4df59b23b
Fix playground not re-reading inputs after page reload
2019-03-24 02:38:05 -04:00
Christopher Willis-Ford
b304ea8fdf
Make touching-color test more robust against GPU imprecision
...
Previously, the `color-touching-tests.sb2` test "touches a color that
doesn't actually exist right now" would use a sprite with ghost 50,
blended against another sprite, to create the color that "doesn't
actually exist" when the query sprite is skipped. Unfortunately the
blend result was near a bit-boundary and, depending on the specific
hardware used, that test could fail on the GPU. When the renderer uses
the CPU path this test works fine, though, so the existing problem went
unnoticed.
To fix the problem I changed the project to use ghost 30 instead, which
results in a color that is less near a bit boundary and is therefore
less likely to fail on specific hardware.
As an example of what was happening: the `touching color` block was
checking for `RGB(127,101,216)` with a mask of `RGB(0xF8,0xF8,0xF0)`. On
the CPU it would find `RGB(120,99,215)`, which is in range, but on some
GPUs the closest color it could find was `RGB(119,98,215)` which
mismatches on all four of the least significant bits -- one of which is
enabled in the mask.
2019-03-20 22:58:36 -07:00
Christopher Willis-Ford
f9428ee096
Run test projects in each GPU usage mode
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
9526612d79
Add touching-color test to verify stencil use
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
fb767b7553
Fix exception on first button click
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
e864018d87
Iterate drawables in the same order on CPU & GPU
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
e0b420a183
Use alpha test to avoid false touching-color
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
a24b853af6
Fix (x,y) => point[] conversion comments
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
73896b6f32
Fix direction for Y iteration on CPU path
...
For some reason the JavaScript engine insists on running the code
instead of doing what the comment says. I guess they should match.
2019-03-20 11:21:05 -07:00
Christopher Willis-Ford
80630a64da
Adjust CPU isTouchingColor to match GPU results
2019-03-20 11:21:05 -07:00
Michael "Z" Goddard
e31934f6a9
update Skin textures with ImageData
...
When possible pass ImageData to texture creation and updating to help
remove chance of references that keep canvas and underlying data from
being garbage collected.
2019-03-19 17:52:21 -04:00