import pygame
import constants

class Gui:
  def __init__(self, _width, _height, _ppm):
    pygame.init()
    self.width = _width   #width of the screen in meters
    self.height = _height #height of the screen in meters
    self.ppm = _ppm       #pixels per meter (float)
    self.screen = pygame.display.set_mode((int(_width * _ppm),
      int(_height * _ppm)))

  def fill_black(self):
    self.screen.fill(pygame.Color("black"))

  def draw_player(self, pos_m, color, radius, it):
    #pos_m and radius measured in meters
    #convert from meters to pixels
    pos_pixels = (int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm))

    #draw the player as a circle
    pygame.draw.circle(self.screen, color, pos_pixels, int(radius * self.ppm))
    if it:
      #draw black border around the it player
      pygame.draw.circle(self.screen, pygame.Color("white"), pos_pixels,
                         int(radius * self.ppm),
                         int(radius/constants.IT_CIRCLE_DIVISOR * self.ppm))

63ecb41155191525d29b85ed38c43840cb6cd45f
<mask token>


class Gui:
    <mask token>
    <mask token>

    def draw_player(self, pos_m, color, radius, it):
        pos_pixels = int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm)
        pygame.draw.circle(self.screen, color, pos_pixels, int(radius *
            self.ppm))
        if it:
            pygame.draw.circle(self.screen, pygame.Color('white'),
                pos_pixels, int(radius * self.ppm), int(radius / constants.
                IT_CIRCLE_DIVISOR * self.ppm))

<mask token>


class Gui:
    <mask token>

    def fill_black(self):
        self.screen.fill(pygame.Color('black'))

    def draw_player(self, pos_m, color, radius, it):
        pos_pixels = int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm)
        pygame.draw.circle(self.screen, color, pos_pixels, int(radius *
            self.ppm))
        if it:
            pygame.draw.circle(self.screen, pygame.Color('white'),
                pos_pixels, int(radius * self.ppm), int(radius / constants.
                IT_CIRCLE_DIVISOR * self.ppm))

<mask token>


class Gui:

    def __init__(self, _width, _height, _ppm):
        pygame.init()
        self.width = _width
        self.height = _height
        self.ppm = _ppm
        self.screen = pygame.display.set_mode((int(_width * _ppm), int(
            _height * _ppm)))

    def fill_black(self):
        self.screen.fill(pygame.Color('black'))

    def draw_player(self, pos_m, color, radius, it):
        pos_pixels = int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm)
        pygame.draw.circle(self.screen, color, pos_pixels, int(radius *
            self.ppm))
        if it:
            pygame.draw.circle(self.screen, pygame.Color('white'),
                pos_pixels, int(radius * self.ppm), int(radius / constants.
                IT_CIRCLE_DIVISOR * self.ppm))

import pygame
import constants


class Gui:

    def __init__(self, _width, _height, _ppm):
        pygame.init()
        self.width = _width
        self.height = _height
        self.ppm = _ppm
        self.screen = pygame.display.set_mode((int(_width * _ppm), int(
            _height * _ppm)))

    def fill_black(self):
        self.screen.fill(pygame.Color('black'))

    def draw_player(self, pos_m, color, radius, it):
        pos_pixels = int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm)
        pygame.draw.circle(self.screen, color, pos_pixels, int(radius *
            self.ppm))
        if it:
            pygame.draw.circle(self.screen, pygame.Color('white'),
                pos_pixels, int(radius * self.ppm), int(radius / constants.
                IT_CIRCLE_DIVISOR * self.ppm))

import pygame
import constants

class Gui:
  def __init__(self, _width, _height, _ppm):
    pygame.init()
    self.width = _width   #width of the screen in meters
    self.height = _height #height of the screen in meters
    self.ppm = _ppm       #pixels per meter (float)
    self.screen = pygame.display.set_mode((int(_width * _ppm),
      int(_height * _ppm)))

  def fill_black(self):
    self.screen.fill(pygame.Color("black"))

  def draw_player(self, pos_m, color, radius, it):
    #pos_m and radius measured in meters
    #convert from meters to pixels
    pos_pixels = (int(pos_m[0] * self.ppm), int(pos_m[1] * self.ppm))

    #draw the player as a circle
    pygame.draw.circle(self.screen, color, pos_pixels, int(radius * self.ppm))
    if it:
      #draw black border around the it player
      pygame.draw.circle(self.screen, pygame.Color("white"), pos_pixels,
                         int(radius * self.ppm),
                         int(radius/constants.IT_CIRCLE_DIVISOR * self.ppm))
