diff --git a/site/user/modules/PathKit_effects.png b/site/user/modules/PathKit_effects.png new file mode 100644 index 0000000000..1dbbb72cdf Binary files /dev/null and b/site/user/modules/PathKit_effects.png differ diff --git a/site/user/modules/pathkit.md b/site/user/modules/pathkit.md new file mode 100644 index 0000000000..8cf1b10a8e --- /dev/null +++ b/site/user/modules/pathkit.md @@ -0,0 +1,29 @@ +PathKit - Skia in the Browser +============================= + +Skia has made its [SkPath](../api/SkPath_Reference) object and many related methods +available to JS clients (e.g. Web Browsers) using WebAssembly and asm.js. + +Download the library +-------------------- + +See [the npm page](https://www.npmjs.com/package/experimental-pathkit-wasm) for details on downloading +and getting started. + +Features +-------- + +PathKit is still under rapid development, so the exact API is still changing. + +The primary features are: + + - API compatibility (e.g. drop-in replacement) with [Path2D](https://developer.mozilla.org/en-US/docs/Web/API/Path2D) + - Can output to SVG / Canvas / Path2D + - Exposes a variety of path effects: + + +Example code +------------ +The best place to look for examples on how to use PathKit would be in the +[example.html](https://github.com/google/skia/blob/master/experimental/pathkit/npm-wasm/example.html#L45) +which comes in the npm package. \ No newline at end of file