PYTHON   132

visual python object

Guest on 15th June 2022 05:19:39 AM

  1. import visual as v
  2. a = v.sphere()
  3. print dir(a)
  4. print a.pos, a.x, a.y, a.z
  5. print a.color, a.red, a.green, a.blue
  6. a.blue = 0                   # now sphere is yellow!
  7. print a.color

Raw Paste


Login or Register to edit or fork this paste. It's free.