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

background color #41

Closed
wbw20 opened this issue Sep 12, 2014 · 2 comments
Closed

background color #41

wbw20 opened this issue Sep 12, 2014 · 2 comments

Comments

@wbw20
Copy link

wbw20 commented Sep 12, 2014

hey

great library. I was wondering how to set the background color of the canvas. I am a MathBox noob. Thanks

💚

@wbw20
Copy link
Author

wbw20 commented Sep 12, 2014

whoops... just saw this: #28

take care

@wbw20 wbw20 closed this as completed Sep 12, 2014
@HLueckhoff
Copy link

You can set the background by regular threejs means. This line works for me:
mathbox._world._renderer.setClearColorHex(0xEDD59A, 1);
You basically get the threejs renderer first and from then on it is a matter of standard threejs API calls. Just keep in mind that the underlying three version is somewhat ancient.

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