Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from visual import *
- def zahyo(X, A, B):
- X.x=0; X.y=0
- X.width=400; X.height=400; X.range=10
- X.up=vector(0, 0, 1); X.forward=vector(-1, -1, -1)
- X.background = color.white
- CB=color.black
- curve(pos=[(0,0,0), (A,0,0)], color=CB)
- curve(pos=[(0,0,0), (0,A,0)], color=CB)
- curve(pos=[(0,0,0), (0,0,A)], color=CB)
- label(pos=(A+B, 0, 0), text='X', color=CB, height=20)
- label(pos=(0, A+B, 0), text='Y', color=CB, height=20)
- label(pos=(0, 0, A+B), text='Z', color=CB, height=20)
Add Comment
Please, Sign In to add comment