Class: Cube

lego.Cube

Cube 立方体

new lego.Cube()

Properties:
Name Type Description
w Number
h Number
l Number

Extends

Methods

inherited _draw(ctx)

_draw
Name Type Description
ctx CanvasContext2d

inherited _render(ctx)

_render
Name Type Description
ctx CanvasContext2d

inherited _transform(ctx)

转换坐标
Name Type Description
ctx CanvasContext2d

inherited addChild(child)

添加对象
Name Type Description
child lego.View

inherited getVector()

获取坐标

init()

inherited removeChild(child)

移除对象
Name Type Description
child lego.View

inherited removeFromParent()

从父容器中移除

inherited render(ctx, dt)

渲染
Name Type Description
ctx CanvasContext2d
dt Number