This commit is contained in:
Felix Pankratz 2025-07-20 16:09:41 +02:00
parent ec63b97756
commit 04e070ccbb

View File

@ -6,9 +6,13 @@ from PIL import Image
import pyvista as pv
def main():
sphere = pv.Tetrahedron()# Sphere()
globe = pv.examples.load_globe()
tex = pv.examples.load_globe_texture()
pl=pv.Plotter(off_screen=True)
pl.add_mesh(sphere, color='tan', show_edges=False)
pl.add_mesh(globe, color='tan', smooth_shading=True, texture=tex, show_edges=False)
hide_cursor()
y, x = get_position()
@ -24,3 +28,6 @@ try:
draw_to_terminal(Image.fromarray(image))
finally:
show_cursor()
if __name__ == '__main__':
main()