Skip to content

Conversation

@lexxai
Copy link

@lexxai lexxai commented May 27, 2014

Allow use own HTML canvas, by canvas = fx.canvas('canvasid');
<canvas id="canvasid" ....

Allow use own HTML canvas, by canvas = fx.canvas('canvasid');
<canvas id="canvasid" ....
@petethepig
Copy link

+1

@denkan
Copy link

denkan commented Feb 14, 2017

Looking for this.
However, would rather pass the HTMLCanvasElement as param to fx.canvas(), as I may not have a certain id on the canvas element.

var c = document.getElementById('canvasid'); 

// or I could use this:
// var c = document.getElementsByTagName('canvas')[0];

canvas = fx.canvas(c);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants