Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
c0d5da52
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
c0d5da52
编写于
7月 14, 2013
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed unneded context.closePath() call.
上级
754e2812
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
0 addition
and
69 deletion
+0
-69
examples/canvas_interactive_cubes.html
examples/canvas_interactive_cubes.html
+0
-1
examples/canvas_interactive_particles.html
examples/canvas_interactive_particles.html
+0
-2
examples/canvas_lines.html
examples/canvas_lines.html
+0
-1
examples/canvas_lines_sphere.html
examples/canvas_lines_sphere.html
+0
-1
examples/canvas_materials.html
examples/canvas_materials.html
+0
-1
examples/canvas_materials_video.html
examples/canvas_materials_video.html
+0
-1
examples/canvas_particles_random.html
examples/canvas_particles_random.html
+0
-1
examples/canvas_particles_shapes.html
examples/canvas_particles_shapes.html
+0
-2
examples/webgl_geometry_subdivision.html
examples/webgl_geometry_subdivision.html
+0
-56
examples/webgl_materials_grass.html
examples/webgl_materials_grass.html
+0
-1
examples/webgl_particles_shapes.html
examples/webgl_particles_shapes.html
+0
-2
未找到文件。
examples/canvas_interactive_cubes.html
浏览文件 @
c0d5da52
...
...
@@ -79,7 +79,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_interactive_particles.html
浏览文件 @
c0d5da52
...
...
@@ -30,7 +30,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
@@ -40,7 +39,6 @@
context
.
lineWidth
=
0.05
;
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
stroke
();
}
...
...
examples/canvas_lines.html
浏览文件 @
c0d5da52
...
...
@@ -63,7 +63,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_lines_sphere.html
浏览文件 @
c0d5da52
...
...
@@ -66,7 +66,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_materials.html
浏览文件 @
c0d5da52
...
...
@@ -112,7 +112,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_materials_video.html
浏览文件 @
c0d5da52
...
...
@@ -129,7 +129,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_particles_random.html
浏览文件 @
c0d5da52
...
...
@@ -49,7 +49,6 @@
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/canvas_particles_shapes.html
浏览文件 @
c0d5da52
...
...
@@ -138,7 +138,6 @@
context
.
lineWidth
=
0.05
;
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
Math
.
PI
*
2
,
true
);
context
.
closePath
();
context
.
stroke
();
context
.
globalAlpha
=
0.2
;
...
...
@@ -161,7 +160,6 @@
context
.
bezierCurveTo
(
x
+
6.0
,
y
+
7.7
,
x
+
8.0
,
y
+
5.5
,
x
+
8.0
,
y
+
3.5
);
context
.
bezierCurveTo
(
x
+
8.0
,
y
+
3.5
,
x
+
8.0
,
y
,
x
+
5.0
,
y
);
context
.
bezierCurveTo
(
x
+
3.5
,
y
,
x
+
2.5
,
y
+
2.5
,
x
+
2.5
,
y
+
2.5
);
context
.
closePath
();
context
.
fill
();
context
.
lineWidth
=
0.5
;
//0.05
context
.
stroke
();
...
...
examples/webgl_geometry_subdivision.html
浏览文件 @
c0d5da52
...
...
@@ -247,62 +247,6 @@
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
)
group
.
add
(
mesh
);
var
debugNewPoints
=
false
;
var
debugOldPoints
=
false
;
// Debug new Points
if
(
debugNewPoints
)
{
var
PI2
=
Math
.
PI
*
2
;
var
program
=
function
(
context
)
{
context
.
beginPath
();
context
.
arc
(
0
,
0
,
1
,
0
,
PI2
,
true
);
context
.
closePath
();
context
.
fill
();
}
for
(
var
i
=
0
;
i
<
smooth
.
vertices
.
length
;
i
++
)
{
particle
=
new
THREE
.
Particle
(
new
THREE
.
ParticleCanvasMaterial
(
{
color
:
Math
.
random
()
*
0x808008
+
0x808080
,
program
:
program
}
)
);
particle
.
position
=
smooth
.
vertices
[
i
];
var
pos
=
smooth
.
vertices
.
position
particle
.
scale
.
x
=
particle
.
scale
.
y
=
5
;
group
.
add
(
particle
);
}
}
//Debug original points
if
(
debugOldPoints
)
{
var
drawText
=
function
(
i
)
{
return
function
(
context
)
{
context
.
beginPath
();
context
.
scale
(
0.1
,
-
0.1
);
context
.
fillText
(
i
,
0
,
0
);
};
}
for
(
var
i
=
0
;
i
<
geometry
.
vertices
.
length
;
i
++
)
{
particle
=
new
THREE
.
Particle
(
new
THREE
.
ParticleCanvasMaterial
(
{
color
:
Math
.
random
()
*
0x808008
+
0x808080
,
program
:
drawText
(
i
)
}
)
);
particle
.
position
=
smooth
.
vertices
[
i
];
var
pos
=
geometry
.
vertices
.
position
particle
.
scale
.
x
=
particle
.
scale
.
y
=
30
;
group
.
add
(
particle
);
}
}
var
meshmaterials
=
[
new
THREE
.
MeshLambertMaterial
(
{
color
:
0xffffff
,
shading
:
THREE
.
FlatShading
,
vertexColors
:
THREE
.
VertexColors
}
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0x405040
,
wireframe
:
true
,
opacity
:
0.8
,
transparent
:
true
}
)
...
...
examples/webgl_materials_grass.html
浏览文件 @
c0d5da52
...
...
@@ -88,7 +88,6 @@
context
.
fillStyle
=
'
rgba(0,
'
+
Math
.
floor
(
Math
.
random
()
*
64
+
32
)
+
'
,16,1)
'
;
context
.
beginPath
();
context
.
arc
(
Math
.
random
()
*
canvas
.
width
,
Math
.
random
()
*
canvas
.
height
,
Math
.
random
()
*
1
+
0.5
,
0
,
Math
.
PI
*
2
,
true
);
context
.
closePath
();
context
.
fill
();
}
...
...
examples/webgl_particles_shapes.html
浏览文件 @
c0d5da52
...
...
@@ -305,11 +305,9 @@
// context.bezierCurveTo( x + 6.0, y + 7.7, x + 8.0, y + 5.5, x + 8.0, y + 3.5 );
// context.bezierCurveTo( x + 8.0, y + 3.5, x + 8.0, y, x + 5.0, y );
// context.bezierCurveTo( x + 3.5, y, x + 2.5, y + 2.5, x + 2.5, y + 2.5 );
// context.closePath();
context
.
beginPath
();
context
.
arc
(
64
,
64
,
60
,
0
,
Math
.
PI
*
2
,
false
)
;
context
.
closePath
();
context
.
lineWidth
=
0.5
;
//0.05
context
.
stroke
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录