parameters: (self,point,text,size=12,color=None)
docstring: Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
  
          Args:
              point (list of floats): either a 2d or 3d point at which to draw the text
              text (str): the text to draw
              size (int, optional): if given, it renders a font in the given size. 
              color (list of 3 or 4 floats) if given, then an RGB or RGBA color value.
docstring_summary: Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
docstring_tokens: Renders text at the given point ( may be 2d or 3d ) . Frontend should call this to draw text in either the display or display_screen method .
function: def draw_text(self,point,text,size=12,color=None):
          """Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
  
          Args:
              point (list of floats): either a 2d or 3d point at which to draw the text
              text (str): the text to draw
              size (int, optional): if given, it renders a font in the given size. 
              color (list of 3 or 4 floats) if given, then an RGB or RGBA color value.
  
          """
          import ctypes
          if size <= 10:
              font = GLUT_BITMAP_HELVETICA_10
          elif size <= 12:
              font = GLUT_BITMAP_HELVETICA_12
          elif size <= 13:
              font = GLUT_BITMAP_8_BY_13
          elif size <= 16:
              font = GLUT_BITMAP_9_BY_15
          elif size <= 21:
              font = GLUT_BITMAP_HELVETICA_12
          else:
              font = GLUT_TIMES_NEW_ROMAN_24
          if color is None:
              glColor3f(0,0,0)
          elif len(color)==3:
              glColor3f(color[0],color[1],color[2])
          else:
              glColor4f(color[0],color[1],color[2],color[3])
          if len(point)==3:
              glRasterPos3f(*point)
          else:
              glRasterPos2f(*point)
          for c in text:
              glutBitmapCharacter(font, ctypes.c_int( ord(c) ))
function_tokens: def draw_text ( self , point , text , size = 12 , color = None ) : import ctypes if size <= 10 : font = GLUT_BITMAP_HELVETICA_10 elif size <= 12 : font = GLUT_BITMAP_HELVETICA_12 elif size <= 13 : font = GLUT_BITMAP_8_BY_13 elif size <= 16 : font = GLUT_BITMAP_9_BY_15 elif size <= 21 : font = GLUT_BITMAP_HELVETICA_12 else : font = GLUT_TIMES_NEW_ROMAN_24 if color is None : glColor3f ( 0 , 0 , 0 ) elif len ( color ) == 3 : glColor3f ( color [ 0 ] , color [ 1 ] , color [ 2 ] ) else : glColor4f ( color [ 0 ] , color [ 1 ] , color [ 2 ] , color [ 3 ] ) if len ( point ) == 3 : glRasterPos3f ( * point ) else : glRasterPos2f ( * point ) for c in text : glutBitmapCharacter ( font , ctypes . c_int ( ord ( c ) ) )