No documentation
NONE: Any = 'none'
VIGNETTE: Any = 'vignette'
BLUR: Any = 'blur'
SEPIA: Any = 'sepia'
GRAYSCALE: Any = 'grayscale'
INVERT: Any = 'invert'
TEMPERATURE_WARM: Any = 'temperature_warm'
TEMPERATURE_COLD: Any = 'temperature_cold'
NIGHT_VISION: Any = 'night_vision'
CRT: Any = 'crt'
PIXELATE: Any = 'pixelate'
BLOOM: Any = 'bloom'
EDGE_DETECT: Any = 'edge_detect'
EMBOSS: Any = 'emboss'
SHARPEN: Any = 'sharpen'
POSTERIZE: Any = 'posterize'
NEON: Any = 'neon'
RADIAL_BLUR: Any = 'radial_blur'
FISHEYE: Any = 'fisheye'
TWIRL: Any = 'twirl'
No methods defined.
No documentation
FULLSCREEN: Any = 'fullscreen'
RECTANGLE: Any = 'rectangle'
CIRCLE: Any = 'circle'
No methods defined.
Simple filter class with all parameters
def __init__(self: Any, filter_type: FilterType = FilterType.NONE, intensity: float = 1.0, region_type: FilterRegionType = FilterRegionType.FULLSCREEN, region_pos: Tuple[float, float] = (0, 0), region_size: Tuple[float, float] = (100, 100), radius: float = 50.0, feather: float = 10.0, blend_mode: str = 'normal') -> Any
def update(self: Any, dt: float) -> Any
def copy(self: Any) -> 'Filter'
Base class for all shader programs with uniform caching.
vertex_source: str | None = None
fragment_source: str | None = None
geometry_source: str | None = None
def get_source(self: Any, source: str | None, type: Literal['vertex', 'fragment', 'geometry']) -> Any
def __init__(self: Any, vertex_source: str, fragment_source: str, geometry_source: Optional[str] = None) -> Any
def _get_uniform_location(self: Any, name: str) -> int
def _create_program(self: Any, vertex_source: str, fragment_source: str, geometry_source: Optional[str] = None) -> Any
def use(self: Any) -> Any
def unuse(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
Instanced particle shader.
def __init__(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
Simple shader for solid color rectangles and shapes.
def __init__(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
Shader for textured rendering.
def __init__(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
Shader for drawing rectangles with per-corner rounded corners.
def __init__(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
Shader for applying post-processing filters.
def __init__(self: Any) -> Any
def _setup_geometry(self: Any) -> Any
No documentation
camera_position: Any = pygame.math.Vector2(0, 0)
def __init__(self: Any, width: int, height: int) -> Any
def max_particles(self: Any) -> int
def max_particles(self: Any, value: int) -> Any
def initialize(self: Any) -> bool
def _initialize_filter_framebuffer(self: Any) -> bool
def add_filter(self: Any, filter_obj: Filter) -> Any
def remove_filter(self: Any, filter_obj: Filter) -> Any
def clear_filters(self: Any) -> Any
def create_quick_filter(self: Any, filter_type: FilterType, intensity: float = 1.0, x: float = 0, y: float = 0, width: float = None, height: float = None, radius: float = 50.0, feather: float = 10.0) -> Filter
def apply_vignette(self: Any, intensity: Any = 0.7, feather: Any = 100.0) -> Filter
def apply_blur(self: Any, intensity: Any = 0.5, x: Any = 0, y: Any = 0, width: Any = None, height: Any = None) -> Filter
def apply_sepia(self: Any, intensity: Any = 1.0) -> Filter
def apply_grayscale(self: Any, intensity: Any = 1.0) -> Filter
def apply_invert(self: Any, intensity: Any = 1.0) -> Filter
def apply_warm_temperature(self: Any, intensity: Any = 0.5) -> Filter
def apply_cold_temperature(self: Any, intensity: Any = 0.5) -> Filter
def apply_night_vision(self: Any, intensity: Any = 0.9) -> Filter
def apply_crt_effect(self: Any, intensity: Any = 0.8) -> Filter
def apply_pixelate(self: Any, intensity: Any = 0.7) -> Filter
def apply_bloom(self: Any, intensity: Any = 0.5) -> Filter
def apply_edge_detect(self: Any, intensity: Any = 0.8) -> Filter
def apply_emboss(self: Any, intensity: Any = 0.7) -> Filter
def apply_sharpen(self: Any, intensity: Any = 0.5) -> Filter
def apply_posterize(self: Any, intensity: Any = 0.6) -> Filter
def apply_neon(self: Any, intensity: Any = 0.7) -> Filter
def apply_radial_blur(self: Any, intensity: Any = 0.5) -> Filter
def apply_fisheye(self: Any, intensity: Any = 0.4) -> Filter
def apply_twirl(self: Any, intensity: Any = 0.3) -> Filter
def apply_circular_grayscale(self: Any, center_x: Any, center_y: Any, radius: Any = 100.0, intensity: Any = 1.0) -> Filter
def apply_rectangular_blur(self: Any, x: Any, y: Any, width: Any, height: Any, intensity: Any = 0.5) -> Filter
def begin_frame(self: Any) -> Any
def end_frame(self: Any) -> Any
def _apply_filters(self: Any) -> Any
def get_surface(self: Any) -> pygame.Surface
def set_surface(self: Any, surface: Optional[pygame.Surface]) -> Any
def _surface_to_texture(self: Any, surface: pygame.Surface) -> int
def _surface_to_texture_cached(self: Any, surface: pygame.Surface) -> int
def _convert_color(self: Any, color: Tuple[int, int, int, float]) -> Tuple[float, float, float, float]
def enable_scissor(self: Any, x: int, y: int, width: int, height: int) -> Any
def disable_scissor(self: Any) -> Any
def draw_rect(self: Any, x: int, y: int, width: int, height: int, color: tuple, fill: bool = True, anchor_point: tuple = (0.0, 0.0), border_width: int = 1, surface: Optional[pygame.Surface] = None, corner_radius: Union[int, Tuple[int, int, int, int]] = 0) -> Any
def _draw_sharp_rect(self: Any, x: Any, y: Any, width: Any, height: Any, color: Any, fill: Any, border_width: Any) -> Any
def _draw_rounded_rect(self: Any, x: Any, y: Any, w: Any, h: Any, color: Any, fill: Any, border_width: Any, radii: Any) -> Any
def draw_line(self: Any, start_x: Any, start_y: Any, end_x: Any, end_y: Any, color: Any, width: Any = 2, surface: Any = None) -> Any
def _draw_thick_line(self: Any, x1: Any, y1: Any, x2: Any, y2: Any, color: Any, width: Any) -> Any
def draw_lines(self: Any, points: List[Tuple[Tuple[int, int], Tuple[int, int]]], color: tuple, width: int = 2, surface: Any = None) -> Any
def draw_circle(self: Any, center_x: Any, center_y: Any, radius: Any, color: Any, fill: Any = True, border_width: Any = 1, surface: Any = None, anchor_point: Any = (0.5, 0.5)) -> Any
def _generate_filled_circle_geometry(self: Any, segments: Any) -> Any
def _generate_hollow_circle_geometry(self: Any, segments: int, border_width: float | int, radius: float | int) -> Any
def _upload_geometry(self: Any, vertices: Any, indices: Any) -> Any
def draw_polygon(self: Any, points: Any, color: Any, fill: Any = True, border_width: Any = 1, surface: Any = None, anchor_point: Any = (0.0, 0.0)) -> Any
def _generate_filled_polygon_geometry(self: Any, points: Any) -> Any
def _generate_hollow_polygon_geometry(self: Any, points: Any, border_width: Any) -> Any
def draw_text(self: Any, text: str, x: int, y: int, color: tuple, font: Any, surface: Any = None, anchor_point: Any = (0.0, 0.0)) -> Any
def draw_surface(self: Any, surface: pygame.Surface, x: int, y: int) -> Any
def blit(self: Any, source: pygame.Surface, dest: Union[Tuple[int, int], pygame.Rect], area: Optional[pygame.Rect] = None, special_flags: int = 0) -> Any
def fill_screen(self: Any, color: Tuple[int, int, int, float]) -> Any
def clear(self: Any) -> Any
def render_particles(self: Any, particle_data: Dict[str, Any], camera: Any) -> Any
def _ensure_particle_capacity(self: Any, required: int) -> Any
def cleanup(self: Any) -> Any
def set_blend_mode(self: Any, mode: Literal['normal', 'add', 'multiply', 'screen']) -> Any