diff --git a/index.html b/index.html index fcdcacb..1493fe5 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@

-

Syntax:


+

Syntax


new CanvasTextWrapper(HTMLCanvasElement, String [, Options]);


@@ -31,7 +31,7 @@ -
-
-

Defaults & Usage:


+ +

Defaults


The default options object which values will be used if a property is not specified or no object is passed:

@@ -99,6 +98,7 @@


+

Usage


Use standard canvas text drawing methods such as "fillStyle" and "globalCompositeOperation" when needed before using CanvasTextWrapper like so: @@ -114,6 +114,12 @@ context.globalCompositeOperation = "destination-out";
var wrapper = new CanvasTextWrapper(canvas, 'Hello'); // default options will apply

+ +

Installation


+

+ bower install canvas-text-wrapper
+ npm install canvas-text-wrapper +

Examples:

@@ -122,4 +128,4 @@ ← View on GitHub - \ No newline at end of file +