code: def star(inner=0.5, outer=1.0, n=5):
      R = np.array([inner, outer] * n)
      T = np.linspace(0, 2 * np.pi, 2 * n, endpoint=False)
      P = np.zeros((2 * n, 3))
      P[:, 0] = R * np.cos(T)
      P[:, 1] = R * np.sin(T)
      return P
  
file_path: vispy/examples/collections/triangle_collection.py
imports: import numpy
  from vispy import app, gloo
  from vispy.geometry import Triangulation
  from vispy.visuals.collections import PathCollection, TriangleCollection
label_desc: Use image node_id 2 for calling a global function with example usage: star(inner, outer, n) and returns: P