Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Пример 1601</title>
- <script src="suica.min.js"></script>
- <script>
- //TO DO
- function main()
- {
- new Suica();
- //oxyz();
- demo(); // zabraneno
- //lookAt([0,50,30],[0,0,0],[0,0,1]);
- //room
- rectangle([-30,0,5],[30,60]).custom({color:[1,1,1],focus:[-1,0,0]});
- rectangle([0,-30,5],[30,60]).custom({color:[1,1,1],focus:[0,-1,0]});
- square([0,0,-10],60).custom({color:[0.25,0.6,0.6]});
- //chair
- // chair=group([cuboid([0,0,0],[4,4,1]),
- // cuboid([-1.5,0,2],[1,4,4]).custom({focus:[0,0,0]}),
- // cuboid([1.5,1.5,-3],[0.8,0.8,5]),cuboid([-1.5,1.5,-3],[0.8,0.8,5]),
- // cuboid([1.5,-1.5,-3],[0.8,0.8,5]),cuboid([-1.5,-1.5,-3],[0.8,0.8,5])]);
- //table
- // table=group([cylinder([0,0,0],7,1),pyramid([0,0,0],2,1.5,6).custom({focus:[0,0,-1]}),
- // pyramid([0,0,-3],2,1.5,6).custom({focus:[0,0,1]}),pyramid([0,0,-3],2,1.5,6).custom({focus:[0,0,-1]}),
- // pyramid([0,0,-6],2,1.5,6).custom({focus:[0,0,1]})]);
- //wardrobe
- // wardrobe=group([cuboid([0,0,0],[6,10,24]),cuboid([3.2,-2.5,0],[0.4,5,24]).custom({color:[0,0,0]}),
- // cuboid([3.2,2.5,0],[0.4,5,24]).custom({color:[0.1,0,0]}),
- // sphere([3.4,-1,0],0.5).custom({color:[0.5,0,0]}),sphere([3.4,1,0],0.5).custom({color:[0.5,0,0]})]);
- //bed
- // bed=group([cuboid([0,0,0],[24,10,3]),cuboid([0,0,2],[24,10,1]).custom({color:[0,0,0.4]}),
- // cuboid([-12.5,0,2.5],[1,10,8]),spheroid([-10,0,3],[2,3,0.6])]);
- }
- </script>
- </head>
- <body onload="main()">
- <canvas width="1000" height="600" style="border: solid 1px Black;">
- Искаме canvas, но няма!
- </canvas>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement