26 Commits

Author SHA1 Message Date
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
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
adroitwhiz
0b9ee47fa1 Add "Scale (both)" option and fix quotes 2019-03-29 10:19:37 -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
c390124df4 Convert 'force GPU' flag into 'useGpuMode' enum 2019-02-06 10:47:49 -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
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
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
Karishma Chadha
f9e2fe5c80 update playground to accommodate new apis. 2018-05-20 22:11:29 -04:00
Chris Willis-Ford
f8c781c163
Merge pull request #227 from cwillisf/use-browser-field
Update packaging to use UMD and the browser field
2018-01-24 15:21:16 -08:00
Christopher Willis-Ford
89b5ed32d0 First pass at re-rasterizing SVGs when scaled 2018-01-17 01:05:44 -05:00
Christopher Willis-Ford
e958e4bfff Fix playground, plus misc. cleanup
The playground was trying to build with a now-missing entry point.
Also, I fixed some JSDoc comments, added HTML labels, etc. until IDEA
had no meaningful complaints about `playground/index.html`.
2018-01-10 17:42:38 -08:00
Paul Kaplan
c33f0e46ce Add color extraction method to renderer 2017-08-25 10:05:46 -04:00
Josh Lory
48bf025380 Fix scratch-render playground
Loading skin by URL is deprecated (see: 64c5991486).
2017-08-09 10:31:02 -07:00
Christopher Willis-Ford
10db85594f Generate /playground from /src/playground
The playground now must be loaded with a URL that ends in "/playground/"
or "/playground/index.html"; loading at "/" will no longer work.

The /playground folder is now purely an output of the build process,
rather than being a mix of build output and static content. The static
content that was previously there (namely, index.html) has been moved
into /src/playground. The `contentBase` has been set to `false` to avoid
confusion between current, in-memory build output and stale, on-disk
build output.
2017-03-08 14:48:57 -08:00