Guest User

Untitled

a guest
Jul 23rd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public void init(GLAutoDrawable drawable)
  2. {
  3. GL gl = drawable.getGL();
  4. gl.glClearColor(1.0f, 1.0f, 1.0f, 0.0f);
  5.  
  6. if (constellationColor == "Red")
  7. {
  8. gl.glColor3f(139f, 0f, 0f);
  9. }
  10. else if (constellationColor == "Green")
  11. {
  12. gl.glColor3f(0f, 100f, 0f);
  13. }
  14. else if (constellationColor == "Blue")
  15. {
  16. gl.glColor3f(0f, 0f, 139f);
  17. }
  18. else
  19. {
  20. gl.glColor3f(0f, 0f, 0f);
  21. }
  22.  
  23. gl.glPointSize(pointSize);
  24. gl.glMatrixMode(GL.GL_PROJECTION);
  25. gl.glLoadIdentity();
  26. glu.gluOrtho2D(0.0, 640.0, 0.0, 480.0);
  27. }
Add Comment
Please, Sign In to add comment