parameters: (self, vertices)
return_statement: return len(out) // 2, out
docstring: in: vertices arranged for gl_line_loop ((x,y),(x,y)...)
          out: vertices arranged for gl_lines (x,y,x,y,x,y...)
docstring_summary: in: vertices arranged for gl_line_loop ((x,y),(x,y)...)
          out: vertices arranged for gl_lines (x,y,x,y,x,y...)
docstring_tokens: in : vertices arranged for gl_line_loop (( x y ) ( x y ) ... ) out : vertices arranged for gl_lines ( x y x y x y ... )
function: def line_loop(self, vertices):
          """
          in: vertices arranged for gl_line_loop ((x,y),(x,y)...)
          out: vertices arranged for gl_lines (x,y,x,y,x,y...)
          """
          out = []
          for i in range(len(vertices) - 1):
              # 0,1  1,2  2,3 ... len-1,len  len,0
              out.extend(vertices[i])
              out.extend(vertices[i + 1])
  
          out.extend(vertices[len(vertices) - 1])
          out.extend(vertices[0])
  
          return len(out) // 2, out
function_tokens: def line_loop ( self , vertices ) : out = [ ] for i in range ( len ( vertices ) - 1 ) : # 0,1  1,2  2,3 ... len-1,len  len,0 out . extend ( vertices [ i ] ) out . extend ( vertices [ i + 1 ] ) out . extend ( vertices [ len ( vertices ) - 1 ] ) out . extend ( vertices [ 0 ] ) return len ( out ) // 2 , out