ait-canvas
Advanced tools
Comparing version 0.2.1 to 0.3.0
13
index.js
@@ -151,2 +151,15 @@ const jsword = require('ait-lang/interfaces'); | ||
const createLinearGradient = jsword('createLinearGradient', function([x2, y2], [x1, y1]) { | ||
return this.ctx.createLinearGradient(x1, y1, x2, y2); | ||
}); | ||
const createRadialGradient = jsword('createRadialGradient', function(r2, [x2, y2], r1, [x1, y1]) { | ||
return this.ctx.createRadialGradient(x1, y1, r1, x2, y2, r2); | ||
}); | ||
const addColorStop = jsword('addColorStop', function(color, offset, gradient) { | ||
gradient.addColorStop(offset, color); | ||
return gradient; | ||
}) | ||
module.exports = { | ||
@@ -153,0 +166,0 @@ canvasHeight, |
{ | ||
"name": "ait-canvas", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Ait module with html canvas bindings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,4 +16,3 @@ # `ait-canvas` | ||
- Image drawing | ||
- Gradients | ||
- Text | ||
- Pixel manipulation |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6495
161
18