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

renderer.setClearColorHex() is not a function #13

Open
bengben opened this issue Oct 10, 2015 · 2 comments
Open

renderer.setClearColorHex() is not a function #13

bengben opened this issue Oct 10, 2015 · 2 comments

Comments

@bengben
Copy link

bengben commented Oct 10, 2015

In:【 learning-threejs/chapter-01/02-first-scene.html 】

the method setClearColorHex() has changed to setClearColor() ?

@bengben bengben changed the title renderer.setClearColorHex() is is not a function renderer.setClearColorHex() is not a function Oct 10, 2015
@feeltheburn
Copy link

Correct... the book gets odd in that area, as later snippets in the book show

(page 16)
renderer.setClearColorHex()
renderer.setClearColor(new THREE.Color(0xEEEEEE));

which is also hosed.

The correct line is:

renderer.setClearColor(new THREE.Color(0xEEEEEE, 1.0));

@dehuszar
Copy link

renderer.setClearColor(0xEEEEEE, 1) also works. I didn't need to use THREE.Color at all.

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

3 participants