Advertisement
annie_02

JS_furniture

Feb 3rd, 2023
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.92 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>Пример 1601</title>
  6.  
  7.     <script src="suica.min.js"></script>
  8.  
  9.     <script>
  10.         //TO DO
  11.         function main()
  12.         {
  13.             new Suica();
  14.             //oxyz();
  15.             demo(); // zabraneno
  16.             //lookAt([0,50,30],[0,0,0],[0,0,1]);
  17.            
  18.  
  19.             //room
  20.             rectangle([-30,0,5],[30,60]).custom({color:[1,1,1],focus:[-1,0,0]});
  21.             rectangle([0,-30,5],[30,60]).custom({color:[1,1,1],focus:[0,-1,0]});
  22.             square([0,0,-10],60).custom({color:[0.25,0.6,0.6]});
  23.            
  24.            
  25.             //chair
  26.             // chair=group([cuboid([0,0,0],[4,4,1]),
  27.             // cuboid([-1.5,0,2],[1,4,4]).custom({focus:[0,0,0]}),
  28.             // cuboid([1.5,1.5,-3],[0.8,0.8,5]),cuboid([-1.5,1.5,-3],[0.8,0.8,5]),
  29.             // cuboid([1.5,-1.5,-3],[0.8,0.8,5]),cuboid([-1.5,-1.5,-3],[0.8,0.8,5])]);
  30.  
  31.             //table
  32.             // table=group([cylinder([0,0,0],7,1),pyramid([0,0,0],2,1.5,6).custom({focus:[0,0,-1]}),
  33.             // 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]}),
  34.             // pyramid([0,0,-6],2,1.5,6).custom({focus:[0,0,1]})]);
  35.  
  36.             //wardrobe
  37.             // wardrobe=group([cuboid([0,0,0],[6,10,24]),cuboid([3.2,-2.5,0],[0.4,5,24]).custom({color:[0,0,0]}),
  38.             // cuboid([3.2,2.5,0],[0.4,5,24]).custom({color:[0.1,0,0]}),
  39.             // 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]})]);
  40.            
  41.             //bed
  42.             // bed=group([cuboid([0,0,0],[24,10,3]),cuboid([0,0,2],[24,10,1]).custom({color:[0,0,0.4]}),
  43.             // cuboid([-12.5,0,2.5],[1,10,8]),spheroid([-10,0,3],[2,3,0.6])]);
  44.            
  45.         }
  46.        
  47.        
  48.     </script>  
  49. </head>
  50.  
  51. <body onload="main()">
  52.     <canvas width="1000" height="600" style="border: solid 1px Black;">
  53.         Искаме canvas, но няма!
  54.     </canvas>
  55. </body>
  56.  
  57. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement