Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
f8781f9a
T
three.js
项目概览
fktz008
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f8781f9a
编写于
2月 25, 2012
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation: Color.
上级
5ac88316
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
104 addition
and
9 deletion
+104
-9
docs/api/core/Clock.html
docs/api/core/Clock.html
+2
-2
docs/api/core/Color.html
docs/api/core/Color.html
+101
-6
docs/index.html
docs/index.html
+1
-1
未找到文件。
docs/api/core/Clock.html
浏览文件 @
f8781f9a
...
...
@@ -35,12 +35,12 @@ Start clock.
Stop clock.
</div>
<h3>
.getElapsedTime() [page:Number
Number
]
</h3>
<h3>
.getElapsedTime() [page:Number]
</h3>
<div>
Get milliseconds passed since the clock started.
</div>
<h3>
.getDelta() [page:Number
Number
]
</h3>
<h3>
.getDelta() [page:Number]
</h3>
<div>
Get the milliseconds passed since the last call to this method.
</div>
...
...
docs/api/core/Color.html
浏览文件 @
f8781f9a
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Represents a color. See also [page:ColorUtils].
</div>
<h2>
Constructor
</h2>
<h3>
[name]()
</h3>
<h3>
[name]( [page:Number hex])
</h3>
<div>
hex — initial color in hexadecimal
<br
/>
</div>
<h2>
Properties
</h2>
<h3>
.[page:Vector3 todo]
</h3>
<h3>
.[page:Number r]
</h3>
<div>
Red channel value (between 0 and 1).
</div>
<h3>
.[page:Number g]
</h3>
<div>
Green channel value (between 0 and 1).
</div>
<h3>
.[page:Number b]
</h3>
<div>
Blue channel value (between 0 and 1).
</div>
<h2>
Methods
</h2>
<h3>
.todo( [page:Vector3 todo] )
</h3>
<h3>
.copy( [page:Color color] ) [page:this]
</h3>
<div>
color — Color to copy.
</div>
<div>
Copies given color.
</div>
<h3>
.copyGammaToLinear( [page:Color color] ) [page:this]
</h3>
<div>
color — Color to copy.
</div>
<div>
Copies given color making conversion from gamma to linear space.
</div>
<h3>
.copyLinearToGamma( [page:Color color] ) [page:this]
</h3>
<div>
color — Color to copy.
</div>
<div>
Copies given color making conversion from linear to gamma space.
</div>
<h3>
.convertGammaToLinear() [page:this]
</h3>
<div>
color — Color to copy.
</div>
<div>
Converts this color from gamma to linear space.
</div>
<h3>
.convertLinearToGamma() [page:this]
</h3>
<div>
color — Color to copy.
</div>
<div>
Converts this color from linear to gamma space.
</div>
<h3>
.setRGB( [page:Number r], [page:Number g], [page:Number b] ) [page:this]
</h3>
<div>
r — Red channel value (between 0 and 1).
<br
/>
g — Green channel value (between 0 and 1).
<br
/>
b — Blue channel value (between 0 and 1).
</div>
<div>
Sets this color from RGB values.
</div>
<h3>
.setHSV( [page:Number h], [page:Number s], [page:Number v] ) [page:this]
</h3>
<div>
h — Hue channel (between 0 and 1).
<br
/>
s — Saturation channel (between 0 and 1).
<br
/>
v — Value channel (between 0 and 1).
</div>
<div>
Sets this color from HSV values.
<br
/>
Based on MochiKit implementation by Bob Ippolito.
</div>
<h3>
.setHex( [page:Number hex] ) [page:this]
</h3>
<div>
hex — Color in hexadecimal.
<br
/>
</div>
<div>
Sets this color from a hexadecimal value.
</div>
<h3>
.getHex() [page:Number]
</h3>
<div>
todo — todo
<br
/>
Returns the value of this color in hexadecimal.
</div>
<h3>
.getContextStyle() [page:String]
</h3>
<div>
Returns the value of this color in CSS context style.
<br
/>
Example: rgb(r, g, b)
</div>
<h3>
.clone() [page:Color]
</h3>
<div>
Clones this object.
</div>
<h2>
Source
</h2>
...
...
docs/index.html
浏览文件 @
f8781f9a
...
...
@@ -344,7 +344,7 @@
text
=
text
.
replace
(
/
\[
page:
(\w
+
)\]
/gi
,
"
<a href=
\"
javascript:goTo('$1')
\"
title=
\"
$1
\"
>$1</a>
"
);
text
=
text
.
replace
(
/
\[
page:
(\w
+
)
(\w
+
)\]
/gi
,
"
<a href=
\"
javascript:goTo('$1')
\"
title=
\"
$1
\"
>$2</a>
"
);
viewer
.
innerHTML
=
'
<br>
'
+
text
+
'
<br>
'
;
viewer
.
innerHTML
=
'
<br>
'
+
text
+
'
<br>
<br>
'
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录