(self, location, offset=(0, 0))
| 761 | draw_traffic_signs(map_surface, yield_font_surface, ts_yield, trigger_color=COLOR_ORANGE_1) |
| 762 | |
| 763 | def world_to_pixel(self, location, offset=(0, 0)): |
| 764 | x = self.scale * self._pixels_per_meter * (location.x - self._world_offset[0]) |
| 765 | y = self.scale * self._pixels_per_meter * (location.y - self._world_offset[1]) |
| 766 | return [int(x - offset[0]), int(y - offset[1])] |
| 767 | |
| 768 | def world_to_pixel_width(self, width): |
| 769 | return int(self.scale * self._pixels_per_meter * width) |