Core.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>[page:NoColorSpace] defines no specific color space.</p>
  25. <p>
  26. [page:SRGBColorSpace] (“sRGB”) refers to the color space defined by the
  27. Rec. 709 primaries, D65 white point, and nonlinear sRGB transfer
  28. functions. sRGB is the default color space in CSS, and is often found in
  29. color palettes and color pickers. Colors expressed in hexadecimal or CSS
  30. notation are typically in the sRGB color space.
  31. </p>
  32. <p>
  33. [page:LinearSRGBColorSpace] (“Linear-sRGB”) refers to the sRGB color space
  34. (above) with linear transfer functions. Linear-sRGB is the working color
  35. space in three.js, used throughout most of the rendering process. RGB
  36. components found in three.js materials and shaders are in the Linear-sRGB
  37. color space.
  38. </p>
  39. <p>For further background and usage, see <i>Color management</i>.</p>
  40. <h2>Mouse Buttons</h2>
  41. <code>
  42. THREE.MOUSE.LEFT
  43. THREE.MOUSE.MIDDLE
  44. THREE.MOUSE.RIGHT
  45. THREE.MOUSE.ROTATE
  46. THREE.MOUSE.DOLLY
  47. THREE.MOUSE.PAN
  48. </code>
  49. <p>
  50. The constants LEFT and ROTATE have the same underlying value. The
  51. constants MIDDLE and DOLLY have the same underlying value. The constants
  52. RIGHT and PAN have the same underlying value.
  53. </p>
  54. <h2>Touch Actions</h2>
  55. <code>
  56. THREE.TOUCH.ROTATE THREE.TOUCH.PAN THREE.TOUCH.DOLLY_PAN
  57. THREE.TOUCH.DOLLY_ROTATE
  58. </code>
  59. <h2>Source</h2>
  60. <p>
  61. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  62. </p>
  63. </body>
  64. </html>