Guest User

Untitled

a guest
Apr 26th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. from visual import *
  2. def zahyo(X, A, B):
  3. X.x=0; X.y=0
  4. X.width=400; X.height=400; X.range=10
  5. X.up=vector(0, 0, 1); X.forward=vector(-1, -1, -1)
  6. X.background = color.white
  7.  
  8. CB=color.black
  9. curve(pos=[(0,0,0), (A,0,0)], color=CB)
  10. curve(pos=[(0,0,0), (0,A,0)], color=CB)
  11. curve(pos=[(0,0,0), (0,0,A)], color=CB)
  12. label(pos=(A+B, 0, 0), text='X', color=CB, height=20)
  13. label(pos=(0, A+B, 0), text='Y', color=CB, height=20)
  14. label(pos=(0, 0, A+B), text='Z', color=CB, height=20)
Add Comment
Please, Sign In to add comment