2
0

Core.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>Core Constants</h1>
  11. <h2>Revision Number</h2>
  12. <code>
  13. THREE.REVISION
  14. </code>
  15. <div id="rev">
  16. The current three.js [link:https://github.com/mrdoob/three.js/releases revision number].
  17. </div>
  18. <h2>Color Spaces</h2>
  19. <code>
  20. THREE.NoColorSpace
  21. THREE.SRGBColorSpace
  22. THREE.LinearSRGBColorSpace
  23. </code>
  24. <p>
  25. [page:NoColorSpace] defines no specific color space.
  26. </p>
  27. <p>
  28. [page:SRGBColorSpace] (“sRGB”) refers to the color space defined by the Rec. 709 primaries, D65
  29. white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
  30. CSS, and is often found in color palettes and color pickers. Colors expressed in
  31. hexadecimal or CSS notation are typically in the sRGB color space.
  32. </p>
  33. <p>
  34. [page:LinearSRGBColorSpace] (“Linear-sRGB”) refers to the sRGB color space (above) with
  35. linear transfer functions. Linear-sRGB is the working color space in three.js, used
  36. throughout most of the rendering process. RGB components found in three.js materials
  37. and shaders are in the Linear-sRGB color space.
  38. </p>
  39. <p>
  40. For further background and usage, see <i>Color management</i>.
  41. </p>
  42. <h2>Mouse Buttons</h2>
  43. <code>
  44. THREE.MOUSE.LEFT
  45. THREE.MOUSE.MIDDLE
  46. THREE.MOUSE.RIGHT
  47. THREE.MOUSE.ROTATE
  48. THREE.MOUSE.DOLLY
  49. THREE.MOUSE.PAN
  50. </code>
  51. <p>
  52. The constants LEFT and ROTATE have the same underlying value.
  53. The constants MIDDLE and DOLLY have the same underlying value.
  54. The constants RIGHT and PAN have the same underlying value.
  55. </p>
  56. <h2>Touch Actions</h2>
  57. <code>
  58. THREE.TOUCH.ROTATE
  59. THREE.TOUCH.PAN
  60. THREE.TOUCH.DOLLY_PAN
  61. THREE.TOUCH.DOLLY_ROTATE
  62. </code>
  63. <h2>Source</h2>
  64. <p>
  65. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  66. </p>
  67. </body>
  68. </html>