Skip to content

Commit

Permalink
Added State
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 20, 2011
1 parent f5f7722 commit fee1c2d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/context2d.js
@@ -1,4 +1,14 @@

/**
* Module dependencies.
*/

var State = require('./state');

/**
* Expose `Context2d`.
*/

exports = module.exports = Context2d;

/**
Expand Down
15 changes: 15 additions & 0 deletions lib/state.js
@@ -0,0 +1,15 @@

/**
* Expose `State`.
*/

module.exports = State;

/**
* Initialize a new `State`.
*/

function State() {
this.fill = 0;
this.stroke = 0;
}

0 comments on commit fee1c2d

Please sign in to comment.