3d object converter 1.409/26/2023 time 4 from math import sin, cos 5 6 ORIGINX = 0 7 ORIGINY = 0 8 9 def draw_3dline ( surface, color, a, b ) : 10 """Convert 3D coordinates to 2D and draw line.""" 11 ax, ay = a + ( a * 0.3 ) + ORIGINX, a + ( a * 0.3 ) + ORIGINY 12 bx, by = b + ( b * 0.3 ) + ORIGINX, b + ( b * 0.3 ) + ORIGINY 13 pygame.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |