diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-04 00:31:01 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-04 00:31:01 -0400 |
| commit | 80e1fcbc52870366f2e885fe82724960929765c9 (patch) | |
| tree | d380e04e8d784c40606bdaad82dcd37d0e260de5 /public/assets/javascripts/environments/tableaux/columns.js | |
| parent | 5fb0ad045820de96848e1bde8e2dba8a6853dd4d (diff) | |
| parent | 90142bd07f926ef8a7f3ea86a563ec0ca648ca5d (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/environments/tableaux/columns.js')
| -rw-r--r-- | public/assets/javascripts/environments/tableaux/columns.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/public/assets/javascripts/environments/tableaux/columns.js b/public/assets/javascripts/environments/tableaux/columns.js new file mode 100644 index 0000000..e961315 --- /dev/null +++ b/public/assets/javascripts/environments/tableaux/columns.js @@ -0,0 +1,36 @@ +MX.Tableaux.Columns = MX.Tableau.extend({ + + init: function (opt) { + + this.opt = opt = defaults(opt, { + width: 10, + height: 10, + depth: 10, + x: 0, + y: 0, + z: 0, + rotationY: 0, + rotationX: 0, + scale: 1, + count: 3, + spacingX: 0, + spacingZ: 100, + }) + + for (var i = 0; i < opt.count; i++) { + var scalebox = new MX.ScaleBox({ + "width": opt.width, + "height": opt.height, + "depth": opt.depth, + "x": opt.x + opt.spacingX * i, + "y": opt.y, + "z": opt.z + opt.spacingZ * i, + "color": opt.color, + "sides": "top bottom left right front back" + }); + scene.add(scalebox) + } + + } + +}) |
