1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>核心常量(Core Constants)</h1>
- <h2>修订版本号</h2>
- <code>
- THREE.REVISION
- </code>
- <div id="rev">
- 当前three.js的修订版本号( [link:https://github.com/mrdoob/three.js/releases revision number])。
- </div>
- <h2>Color Spaces</h2>
- <code>
- THREE.SRGBColorSpace
- THREE.LinearSRGBColorSpace
- </code>
- <p>
- [page:SRGBColorSpace] (“srgb”) refers to the color space defined by the Rec. 709 primaries, D65
- white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
- CSS, and is often found in color palettes and color pickers. Colors expressed in
- hexadecimal or CSS notation are typically in the sRGB color space.
- </p>
- <p>
- [page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space (above) with
- linear transfer functions. Linear-sRGB is the working color space in three.js, used
- throughout most of the rendering process. RGB components found in three.js materials
- and shaders are in the Linear-sRGB color space.
- D</p>
- <p>
- For further background and usage, see <i>Color management</i>.
- </p>
- <h2>鼠标按钮</h2>
- <code>
- THREE.MOUSE.LEFT
- THREE.MOUSE.MIDDLE
- THREE.MOUSE.RIGHT
- </code>
- <h2>源代码</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
- </p>
- </body>
- </html>
|