Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import GLOOP.*;
  2. class Ring{
  3. GLKamera Schwenkkamera;
  4. GLLicht licht;
  5. GLTastatur Tastatur;
  6. GLHimmel himmel;
  7. GLTorus ring1,ring2,ring3,ring4,ring5;
  8.  
  9. Ring() {
  10. Schwenkkamera = new GLSchwenkkamera();
  11. Tastatur = new GLTastatur();
  12. licht = new GLLicht();
  13.  
  14. ring1 = new GLTorus (-280,70,0,120,10);
  15. ring2 = new GLTorus (0,70,0,120,10);
  16. ring3 = new GLTorus (+280,70,0,120,10);
  17. ring4 = new GLTorus (-140,-70,0,120,10);
  18. ring5 = new GLTorus (+140,-70,0,120,10);
  19.  
  20. ring1.setzeFarbe(0,0,1);
  21. ring2.setzeFarbe(0,0,0);
  22. ring3.setzeFarbe(1,0,0);
  23. ring4.setzeFarbe(1,1,0);
  24. ring5.setzeFarbe(0,1,0);
  25.  
  26. ring1.drehe (0,-10,0);
  27. ring2.drehe (0,-10,0);
  28. ring3.drehe (0,-10,0);
  29. ring4.drehe (0,10,0);
  30. ring5.drehe (0,10,0);
  31.  
  32.  
  33. himmel = new GLHimmel("C:/Users/clrs/Desktop/untericht2/textures/himmel.jpg");
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement