Ejemplo n.º 1
0
def render_vector_text(Matrix, Text, XY, Rot, Size, Color, Align):
    Big = make_text_vectors(Text, XY, Align, Size)
    for Seg in Big:
        P0 = world_coord(Matrix, Seg[0])
        P1 = world_coord(Matrix, Seg[1])
        draw_line(P0, P1, Color)
Ejemplo n.º 2
0
 def text(self, X, Y, Text, Color=(0.5, 0.5, 0.5), Size=1):
     Big = make_text_vectors(Text, (X, Y), 'left', Size / 2)
     for List in Big:
         self.mline(List, Color, 0)