Skip to main content

splashlib

A small lib to load and display splashscreen, which can have per pixel alpha. Depends on: PIL, Pygame, Windows OS


Fabian Dill
(berserker)
A small lib to load and display splashscreen, which can have per pixel alpha.
Depends on: PIL, Pygame, Windows OS

Usage:
import splashlib
splashlib.splash([tuple containing the dimensions of the image], [string reperesenting path to image])
for example:
splashlib.splash((940, 140),"splash.png")

this can only be done BEFORE you make a pygame display. This module will initialize pygame and create a screen, so you sould not do that before it does.
when the function returns you will have a pygame screen, with the size of the image, frameless.
Just call display.set_mode afterwards to make it fit for your application, or destroy the screen if you dont use pygame for your program.

The package contains an example splash and if you execute the splashlib itself it will showcase the example.

Changes

Links

Home Page
http://www.pygame.org/

Releases

splashlib 1.0 — 22 Jul, 2010

Pygame.org account Comments