cuber

所属分类:数学计算
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2017-02-13 01:57:04
上 传 者sh-1993
说明:  Cuber是一种可编程的Rubiks立方体。,
(Cuber is a programmable Rubiks cube of sorts.,)

文件列表:
LICENSE (1079, 2017-02-12)
catmin.js (1684, 2017-02-12)
examples/ (0, 2017-02-12)
examples/basic/ (0, 2017-02-12)
examples/basic/index.html (4505, 2017-02-12)
examples/basic/scripts/ (0, 2017-02-12)
examples/basic/scripts/main.js (4573, 2017-02-12)
examples/basic/scripts/presets.js (13957, 2017-02-12)
examples/basic/scripts/solvers/ (0, 2017-02-12)
examples/basic/scripts/solvers/stewart.js (21897, 2017-02-12)
examples/basic/scripts/solvers/striegel.js (0, 2017-02-12)
examples/basic/styles/ (0, 2017-02-12)
examples/basic/styles/base.css (1542, 2017-02-12)
examples/index.html (1888, 2017-02-12)
examples/solutions/ (0, 2017-02-12)
examples/solutions/index.html (4486, 2017-02-12)
examples/solutions/scripts/ (0, 2017-02-12)
examples/solutions/scripts/solutions.js (21768, 2017-02-12)
examples/solutions/styles/ (0, 2017-02-12)
examples/solutions/styles/solutions.css (377, 2017-02-12)
package.json (132, 2017-02-12)
src/ (0, 2017-02-12)
src/assets/ (0, 2017-02-12)
src/assets/cuber-favicon-0144x0144.ai (193974, 2017-02-12)
src/assets/rubiksLogoClassic.ai (87248, 2017-02-12)
src/media/ (0, 2017-02-12)
src/media/RubikExtended.otf (22500, 2017-02-12)
src/media/RubikExtended.ttf (60624, 2017-02-12)
src/media/cuber-favicon-0064x0064.png (289, 2017-02-12)
src/media/cuber-favicon-0144x0144.png (368, 2017-02-12)
src/media/rubiksLogoClassic.png (2645, 2017-02-12)
src/scripts/ (0, 2017-02-12)
src/scripts/ERNO.js (3494, 2017-02-12)
src/scripts/colors.js (1903, 2017-02-12)
src/scripts/controls.js (5365, 2017-02-12)
src/scripts/cubelets.js (14391, 2017-02-12)
src/scripts/cubes.js (24612, 2017-02-12)
src/scripts/directions.js (7850, 2017-02-12)
... ...

Cuber ============================================================================== Cuber is a Rubik's cube simulator written in javascript with a little bit of three.js thrown in for good measure. It uses CSS 3D transforms and has a programmatic API, and has different rendering outputs. ### Getting started Download the [minified file](https://github.com/build/cuber.min.js), the [css](https://github.com/build/cube.css) and include it in your project. ```html ``` Create a new Cube, attach it to your DOM and you're good to go. ```javascript var cube = new ERNO.Cube(); document.body.appendChild( cube.domElement ); ``` ### Commands Cuber is interactive, but you can also twist slices programmatically. We use a variation of the [Singmaster notation](https://github.comhttp://en.wikipedia.org/wiki/Rubik's_Cube#Move_notation) which uses a single character and it's case to denote a move. For example `cube.twist( 'U' )` rotates the Upper face clockwise. You can also chain multiple moves into a sequence such as `cube.twist( 'UDLF' )`. You can also use `cube.undo()` and `cube.redo()` to step through the move history. `cube.shuffle( 5 )` shuffles the cube 5 times. Examples ------------------------------------------------------------------------------ __From the desktop__ Take a look at the [basic example](https://github.com/index.html). This demonstrates many of the api settings.

近期下载者

相关文件


收藏者