595 Commits

Author SHA1 Message Date
adroitwhiz
05928eb400 Add very basic pen testing to playground 2019-04-19 13:44:47 -04: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
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
Paul Kaplan
3c79a5562e
Merge pull request #421 from LLK/greenkeeper/scratch-svg-renderer-0.2.0-prerelease.20190304180800
Update scratch-svg-renderer to the latest version 🚀
2019-03-12 08:46:47 -04:00
greenkeeper[bot]
d59d45b6c8 fix(package): update scratch-svg-renderer to version 0.2.0-prerelease.20190304180800 2019-03-04 18:09:20 +00:00
Michael "Z" Goddard
19ee8e8eaa
Merge pull request #415 from mzgoddard/drop-silhouette-alpha-buffer
Replace Silhouette._data with Silhouette._colorData
2019-03-04 12:56:58 -05:00
Michael "Z" Goddard
e022222365
replace Silhouette._data with Silhouette._colorData
_colorData holds the same (and more) data that _data holds. Dropping
the _data array saves a lot of memory for a tiny performance
degradation in regards to touching object.
2019-02-22 17:08:53 -05:00
Michael "Z" Goddard
be5ab2e689
receive ImageData directly in Silhouette.update
Given ImageData we can skip drawing the input and getting image data.
This can help if update's color can also use the ImageData directly.
2019-02-22 17:08:04 -05:00
Chris Willis-Ford
c9f86ef53b
Merge pull request #406 from cwillisf/playground-webpack
Add "query playground"
2019-02-14 10:33:31 -08:00
Katie Broida
4bf233ef36
Merge pull request #409 from ktbee/compat-bitmap-position-off-stage
Compatibility fix for bitmap position off stage
2019-02-13 13:29:26 -05:00
Karishma Chadha
253cbd019d
Merge pull request #411 from LLK/greenkeeper/scratch-vm-0.2.0-prerelease.20190207224121
chore(package): update scratch-vm to version 0.2.0-prerelease.2019020…
2019-02-13 10:21:44 -05:00
Katie Broida
1f0f89920a Always use getAABB for bitmap skins when determining fenced position 2019-02-11 11:56:59 -05:00
Katie Broida
25df9f1ab7
Merge pull request #408 from ktbee/compat-integer-x-y-off-stage
Use Math.ceil and Math.floor to match Scratch 2 logic
2019-02-08 11:53:07 -05:00
greenkeeper[bot]
7680270f40 chore(package): update scratch-vm to version 0.2.0-prerelease.20190207224121
Closes #361
2019-02-07 22:43:47 +00:00
Chris Willis-Ford
c7b22b58c2
Merge pull request #410 from LLK/revert-407-coordinates-fixups
Revert "Adjust CPU isTouchingColor to match GPU results"
2019-02-07 13:11:57 -08:00
Chris Willis-Ford
f2d457a827
Revert "Adjust CPU isTouchingColor to match GPU results" 2019-02-07 13:00:15 -08:00
Chris Willis-Ford
e3c68e7122
Merge pull request #407 from cwillisf/coordinates-fixups
Adjust CPU isTouchingColor to match GPU results
2019-02-06 13:31:52 -08:00
Christopher Willis-Ford
e64d8727ec Fix (x,y) => point[] conversion comments 2019-02-06 11:08:17 -08:00
Christopher Willis-Ford
c390124df4 Convert 'force GPU' flag into 'useGpuMode' enum 2019-02-06 10:47:49 -08:00
Christopher Willis-Ford
8bd6241160 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-02-05 18:19:21 -08:00
Katie Broida
c8b9516219 Use Math.ceil and Math.floor to match Scratch 2 logic 2019-02-04 16:03:33 -05:00
Christopher Willis-Ford
1db67a474e Adjust CPU isTouchingColor to match GPU results 2019-02-04 11:20:59 -08:00
Christopher Willis-Ford
028b4eba3f Adjust cursor coordinates for devicePixelRatio 2019-01-30 16:37:59 -08:00
Christopher Willis-Ford
59cef02fdb Mark correct viewport corners with red dots 2019-01-30 15:58:51 -08:00
Christopher Willis-Ford
99d6e46f7e Adjust rendering for crisp pixels
- Adjust the rotation center of the cursor so that its single pixel is
  gets rendered onto a single stage pixel instead of being split across
  2-4 stage pixels.
- Add canvas CSS to make most browsers scale the canvases without
  interpolation.
2019-01-30 11:00:27 -08:00
Christopher Willis-Ford
992977d6c6 Add debug canvas support to isTouching CPU path 2019-01-30 11:00:14 -08:00
Christopher Willis-Ford
a358c8f916 Lint cleanup 2019-01-28 12:25:58 -08:00
Christopher Willis-Ford
e8d71277e2 Use query playground to compare GPU vs. CPU implementations 2019-01-28 11:43:38 -08:00
Paul Kaplan
b4f9f28417
Merge pull request #405 from LLK/greenkeeper/scratch-svg-renderer-0.2.0-prerelease.20190125192231
fix(package): update scratch-svg-renderer to version 0.2.0-prerelease…
2019-01-28 10:40:13 -05:00
Christopher Willis-Ford
fba2d90fda Stub queryPlayground.html 2019-01-25 17:28:51 -08:00
Christopher Willis-Ford
31db3d8596 Build playground using Webpack 2019-01-25 17:28:02 -08:00
greenkeeper[bot]
898d5d7885 fix(package): update scratch-svg-renderer to version 0.2.0-prerelease.20190125192231
Closes #397
2019-01-25 19:23:50 +00:00
Evelyn Eastmond
9b11ac894d
Merge pull request #376 from evhan55/bug/extract-drawable
Fix extraction of drawable to not clip bounds.
2019-01-24 21:33:50 -05:00
Evelyn Eastmond
fc6fcd0543 Removing console log comment. 2019-01-24 10:56:11 -05:00
Evelyn Eastmond
b77f4c663a Removing console log. 2019-01-24 10:54:08 -05:00
Evelyn Eastmond
5e5a423d39 Fixing checkFramebufferstatus check. 2019-01-24 10:54:08 -05:00
Evelyn Eastmond
402cfbf99f Adding a console log for testing. 2019-01-24 10:54:08 -05:00
Evelyn Eastmond
a0dd716c23 Adding some sanity checks and error handling that aren't fully working yet. 2019-01-24 10:54:08 -05:00
Evelyn Eastmond
183919a20a Fixing a comment. 2019-01-24 10:54:08 -05:00
Evelyn Eastmond
3cfafebb2e Fixing extraction of a drawable to not clip bounds. 2019-01-24 10:54:08 -05:00
DD Liu
931ff270dd
Merge pull request #404 from LLK/touchingColor2
Update silhouette after getting texture at a new scale
2019-01-22 17:29:43 -05:00
DD Liu
cc448951f9 Update silhouette after getting texture at a new scale 2019-01-22 13:58:59 -05:00
Katie Broida
cfa0194ab8
Merge pull request #402 from ktbee/fix-test-typo
Fix typo for sb3 test files
2019-01-17 15:47:33 -05:00