modern-canvas 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,3 +76,20 @@ loadFallbackFont().then(() => {
76
76
  document.body.append(engine.view)
77
77
  })
78
78
  ```
79
+
80
+ ## Effect
81
+
82
+ See the [effect](./src/effect)
83
+
84
+ ```typescript
85
+ import { EmbossEffect, Image2D } from 'modern-canvas'
86
+
87
+ engine.root.addChild(
88
+ new Image2D({
89
+ src: '/example.png',
90
+ })
91
+ .addChild(
92
+ new EmbossEffect(),
93
+ )
94
+ )
95
+ ```