Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active October 7, 2018 19:29
Show Gist options
  • Save gskachkov/01120e09e283cd5f7c19b9a908e75999 to your computer and use it in GitHub Desktop.
Save gskachkov/01120e09e283cd5f7c19b9a908e75999 to your computer and use it in GitHub Desktop.
class MyPainter {
static get inputProperties() {
return [ /* ... */ ];
}
paint(ctx, geometry, properties) {
// ...
}
}
registerPaint('myPainter', MyPainter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment