Three.js: Wrong color

Created on 21 Jul 2017  路  2Comments  路  Source: mrdoob/three.js

Description of the problem

The same color created using RGB string and hexadecimal color different on scene

http://jsfiddle.net/bidolah/akmcv7Lh/171/

Three.js version
  • [ ] Dev
  • [x] r86
  • [ ] ...
Browser
  • [ ] All of them
  • [x] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [x] Windows
  • [ ] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS

Most helpful comment

... or as CSS-string:
{ color: new THREE.Color( 'rgb(255, 17 , 0)' ) }

All 2 comments

The float colors are in 0..1 range, not 0..255, so it would be THREE.Color(1, 0.07, 0) instead.

... or as CSS-string:
{ color: new THREE.Color( 'rgb(255, 17 , 0)' ) }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danieljack picture danieljack  路  3Comments

fuzihaofzh picture fuzihaofzh  路  3Comments

filharvey picture filharvey  路  3Comments

donmccurdy picture donmccurdy  路  3Comments

Horray picture Horray  路  3Comments