Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update canvas.js #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update canvas.js #21

wants to merge 1 commit into from

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.

None yet

3 participants