# Path: neuropsydia/screen.py



from .screen import screen, screen_width, screen_height, monitor_diagonal
import os
import pygame
import time as builtin_time
import numpy as np
import datetime
    Example
    ----------
    >>> import neuropsydia as n
    >>> n.start()
    >>> n.newpage("blue")
    >>> n.refresh()
    >>> n.time.wait(500)
    >>> n.close()

    Notes
    ----------
    *Authors*

    - Dominique Makowski (https://github.com/DominiqueMakowski)

    *Dependencies*

    - pygame
    - time
    """
    if color_name is not None:
        if fade is False:
            if opacity == 100:
                try:
                    screen.fill(color(color_name))
                except:
                    print("NEUROPSYDIA ERROR: newpage(): wrong argument")
            else:
                opacity = int(opacity * 255 / 100)
                color_name = color(color_name) + (opacity,)

# Path: neuropsydia/screen.py



# Path: neuropsydia/core.py
from .screen import screen, screen_width, screen_height, monitor_diagonal
import os
import pygame
import time as builtin_time
import numpy as np
import datetime

    Example
    ----------
    >>> import neuropsydia as n
    >>> n.start()
    >>> n.newpage("blue")
    >>> n.refresh()
    >>> n.time.wait(500)
    >>> n.close()

    Notes
    ----------
    *Authors*

    - Dominique Makowski (https://github.com/DominiqueMakowski)

    *Dependencies*

    - pygame
    - time
    """
    if color_name is not None:
        if fade is False:
            if opacity == 100:
                try:
                    screen.fill(color(color_name))
                except:
                    print("NEUROPSYDIA ERROR: newpage(): wrong argument")
            else:
                opacity = int(opacity * 255 / 100)
                color_name = color(color_name) + (opacity,)

                mask = pygame.Surface((screen_width, screen_height), pygame.SRCALPHA)  # per-pixel alpha