Internal rendering function. Anything you want to draw goes in this function. It is automatically called by vroom whenever the scene needs to be updated.

This is an internal function used by vroom. All internal functions are optional. However, if they are defined in your application they will be called automatically. A list of all internal vroom functions can be found here.

usage

def display():
   # rendering code goes here...

examples

drawing a single sphere

def display():
   sphere(3.0)

drawing multiple sheres

def display():
   color(blue)
   draw(sphere, 3.0).at(-3, 0, 0)

   color(green)
   draw(sphere, 3.0).at(0, 0, 0)

   color(blue)
   draw(sphere, 3.0).at(3, 0, 0)

calling a user defined function

def draw_something():
   # amazing drawing code goes here...

def draw_something_else():
   # more amazing drawing code goes here...

def display():
   draw_something()
   draw_something_else()