gtn/.venv/Lib/site-packages/pygame/pixelcopy.pyi
Tipragot 628be439b8 Ajout d'un environement de développement.
Cela permet de ne pas avoir de problèmes de compatibilité
car python est dans le git.
2023-10-26 15:33:03 +02:00

21 lines
534 B
Python

import numpy
from pygame.surface import Surface
from ._common import Literal
_kind = Literal["P", "p", "R", "r", "G", "g", "B", "b", "A", "a", "C", "c"]
def surface_to_array(
array: numpy.ndarray,
surface: Surface,
kind: _kind = "P",
opaque: int = 255,
clear: int = 0,
) -> None: ...
def array_to_surface(surface: Surface, array: numpy.ndarray) -> None: ...
def map_array(
array1: numpy.ndarray, array2: numpy.ndarray, surface: Surface
) -> None: ...
def make_surface(array: numpy.ndarray) -> Surface: ...