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

Crafty.background only adds to the DOM #27

Closed
atimmer opened this issue Jan 26, 2011 · 1 comment
Closed

Crafty.background only adds to the DOM #27

atimmer opened this issue Jan 26, 2011 · 1 comment

Comments

@atimmer
Copy link

atimmer commented Jan 26, 2011

The function Crafty.background only adds a background to the DOM stage, it doesn't add a background to the canvas stage if you use that. Somehow Crafty should detect whether there is a canvas or not an add the background to that.

@louisstow
Copy link
Member

Currently the reason for that was optimization. Was easier to have a static div background colour as opposed to drawing on the canvas when it will rarely change.

This issue was closed.
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

No branches or pull requests

2 participants