@@ -103,30 +103,30 @@ class Texture:
103103 ) -> None : ...
104104 def draw_triangle (
105105 self ,
106- p1_xy ,
107- p2_xy ,
108- p3_xy ,
109- p1_uv = (0.0 , 0.0 ),
110- p2_uv = (1.0 , 1.0 ),
111- p3_uv = (0.0 , 1.0 ),
112- p1_mod = (255 , 255 , 255 , 255 ),
113- p2_mod = (255 , 255 , 255 , 255 ),
114- p3_mod = (255 , 255 , 255 , 255 ),
106+ p1_xy : Iterable [ float ] ,
107+ p2_xy : Iterable [ float ] ,
108+ p3_xy : Iterable [ float ] ,
109+ p1_uv : Iterable [ float ] = (0.0 , 0.0 ),
110+ p2_uv : Iterable [ float ] = (1.0 , 1.0 ),
111+ p3_uv : Iterable [ float ] = (0.0 , 1.0 ),
112+ p1_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
113+ p2_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
114+ p3_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
115115 ) -> None : ...
116116 def draw_quad (
117117 self ,
118- p1_xy ,
119- p2_xy ,
120- p3_xy ,
121- p4_xy ,
122- p1_uv = (0.0 , 0.0 ),
123- p2_uv = (1.0 , 0.0 ),
124- p3_uv = (1.0 , 1.0 ),
125- p4_uv = (0.0 , 1.0 ),
126- p1_mod = (255 , 255 , 255 , 255 ),
127- p2_mod = (255 , 255 , 255 , 255 ),
128- p3_mod = (255 , 255 , 255 , 255 ),
129- p4_mod = (255 , 255 , 255 , 255 ),
118+ p1_xy : Iterable [ float ] ,
119+ p2_xy : Iterable [ float ] ,
120+ p3_xy : Iterable [ float ] ,
121+ p4_xy : Iterable [ float ] ,
122+ p1_uv : Iterable [ float ] = (0.0 , 0.0 ),
123+ p2_uv : Iterable [ float ] = (1.0 , 0.0 ),
124+ p3_uv : Iterable [ float ] = (1.0 , 1.0 ),
125+ p4_uv : Iterable [ float ] = (0.0 , 1.0 ),
126+ p1_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
127+ p2_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
128+ p3_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
129+ p4_mod : Iterable [ int ] = (255 , 255 , 255 , 255 ),
130130 ) -> None : ...
131131 def update (self , surface : Surface , area : Optional [RectValue ] = None ) -> None : ...
132132
@@ -185,13 +185,13 @@ class Renderer:
185185 self , p1 : Iterable [int ], p2 : Iterable [int ], p3 : Iterable [int ]
186186 ) -> None : ...
187187 def fill_triangle (
188- self , p1 : Iterable [int ], p2 : Iterable [int ], p3 : Iterable [int ]
188+ self , p1 : Iterable [float ], p2 : Iterable [float ], p3 : Iterable [float ]
189189 ) -> None : ...
190190 def draw_quad (
191191 self , p1 : Iterable [int ], p2 : Iterable [int ], p3 : Iterable [int ], p4 : Iterable [int ]
192192 ) -> None : ...
193193 def fill_quad (
194- self , p1 : Iterable [int ], p2 : Iterable [int ], p3 : Iterable [int ], p4 : Iterable [int ]
194+ self , p1 : Iterable [float ], p2 : Iterable [float ], p3 : Iterable [float ], p4 : Iterable [float ]
195195 ) -> None : ...
196196 def to_surface (
197197 self , surface : Optional [Surface ] = None , area : Optional [RectValue ] = None
0 commit comments