0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
2 Posted Topics
Re: This works as well: from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d.art3d import Poly3DCollection import matplotlib.pyplot as plt from matplotlib import cm import numpy as np x = [0,1,1,0] y = [0,0,1,1] z = [0,1,0,1] fig = plt.figure() ax = fig.gca(projection='3d') ax.plot_trisurf(x, y, z, cmap=cm.jet, linewidth=0.2) plt.show() | |
Re: Hi, as you are already using pygame, I would recommend using a tilemap. tilemap = [ [W,W,W,W,W,WW,W,W,W,W,W,W,W,W,W,W], [W, , , , ,W, , , , ,W, , , , , ,W], [W, ,W,W, ,W, ,W,W, , , ,W,W,W, ,W], [W, ,W, , ,W, , ,W, ,W, ,W, ,W, ,W], [W, … |
The End.