Hi
I am trying to do the following commands to import materials in a Python Jupyter notebook.
Vpython works, but I am trying to add a material from an image.
As follows.
from visual import *
imprort vpython
****** Visual package is not recognized*
How do I get visual to be imported? I tried pip install visual, but it was not recognized.
name = "Pic"
width = 128 # must be power of 2
height = 128 # must be power of 2
im = Image.open(name+".png")
im = im.resize((width,height), Image.ANTIALIAS)
tex = material.texture(data=im, mapping='rectangular')
But, material is not known to vpython.
Do you have any suggestions?
Thank you
Katie