# Path: utils/display.py
# def blank_screen(screen, background, duration):
# def image(screen, img, x, y):
# def text(screen, font, text_string, x, y, colour=(0, 0, 0)):
# def text_space(screen, font, x, y, colour=(0, 0, 0)):
# def wait(duration):
# def wait_for_space():


import sys
import time
import pandas as pd
import numpy as np
import pygame
from pygame.locals import *
from itertools import product
from utils import display
        background,
        dark_mode=False,
        sets_practice=3,
        sets_main=25,
        blocks_compat=1,
        blocks_incompat=0,
        block_order="compatible",
    ):
        # Get the pygame display window
        self.screen = screen
        self.background = background

        # Sets font and font size
        self.font = pygame.font.SysFont("arial", 30)
        self.font_stim = pygame.font.SysFont("arial", 100)

        # Set colours
        if dark_mode:
            self.colour_bg = (0, 0, 0)
            self.colour_font = (255, 255, 255)
        else:
            self.colour_bg = (255, 255, 255)
            self.colour_font = (0, 0, 0)

        # Get screen info
        self.screen_x = self.screen.get_width()
        self.screen_y = self.screen.get_height()

        # Fill background
        self.background.fill(self.colour_bg)

# Path: utils/display.py
# def blank_screen(screen, background, duration):
# def image(screen, img, x, y):
# def text(screen, font, text_string, x, y, colour=(0, 0, 0)):
# def text_space(screen, font, x, y, colour=(0, 0, 0)):
# def wait(duration):
# def wait_for_space():


# Path: tasks/flanker.py
import sys
import time
import pandas as pd
import numpy as np
import pygame
from pygame.locals import *
from itertools import product
from utils import display

        background,
        dark_mode=False,
        sets_practice=3,
        sets_main=25,
        blocks_compat=1,
        blocks_incompat=0,
        block_order="compatible",
    ):
        # Get the pygame display window
        self.screen = screen
        self.background = background

        # Sets font and font size
        self.font = pygame.font.SysFont("arial", 30)
        self.font_stim = pygame.font.SysFont("arial", 100)

        # Set colours
        if dark_mode:
            self.colour_bg = (0, 0, 0)
            self.colour_font = (255, 255, 255)
        else:
            self.colour_bg = (255, 255, 255)
            self.colour_font = (0, 0, 0)

        # Get screen info
        self.screen_x = self.screen.get_width()
        self.screen_y = self.screen.get_height()

        # Fill background
        self.background.fill(self.colour_bg)

        pygame.display.set_caption("Eriksen Flanker Task")