Ian Mallett (geometrian)

Tags:

Description

Pygame Advance Graphics Library

PAdLib

This is an all purpose graphics library for easily creating complicated effects quickly, and with a minimum of code. Run the very well commented examples, each less than a page long (not counting comments), and learn how to make complicated effects like shadows and antialiasing. Have fun!

Dependencies

Python
Pygame
Psyco (optional)

To Do

-Improve Antialiasing speed with the new features in PyGame 1.8
-Thicker Dotted Lines?
-Some More Demos
Email me to give suggestions.

Changes

-Fixed the problems people had with pygame.init()
-Added RoundedRect()

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

July 25, 2013 7:24am - Ian Mallett - nickname: (geometrian)

Version 8.1.1 released!

January 8, 2013 7:00am - Ian Mallett - nickname: (geometrian)

Version 8.1.0 released!

January 5, 2013 3:50am - Ian Mallett - nickname: (geometrian)

Version 8.0.2 released!

January 1, 2013 10:42am - Ian Mallett - nickname: (geometrian)

Version 8.0.1 released!

December 31, 2012 11:15pm - Ian Mallett - nickname: (geometrian)

Version 8.0.0 released (versions 6.0.0 and 7.0.0 were prerelease work)! This version is almost completely rewritten for awesomeness.

May 10, 2008 1:28pm - pymike - nickname: (pymike)

Nice bezier curves :)

May 9, 2008 11:23pm - Ian Mallett - nickname: (geometrian)

Version 5.0.0 released!

April 6, 2008 12:03pm - Ian Mallett - nickname: (geometrian)

I was something to do with the way you did it, I think--something about your use of factorials. The method you used for your cubic splines actually is generic--you just needed to allow it to use different numbers of points. Curiously, it only works for 2, 4, or 6 control points. I didn't attempt odd numbers, and 8+ doesn't work...?

April 6, 2008 5:45am - Francesco Mastellone - nickname: (effeemme)

Hi! Nice job with the curves. I'm still trying to understand what causes the origin to be the last point of the curve, in my generic algorithm...

April 5, 2008 8:53pm - Wil Alvarez - nickname: (satanas666)

Wow dude! Really nice particles effects... Awesome.

Great Job!

April 5, 2008 8:47pm - Ian Mallett - nickname: (geometrian)

Version 4.0.0 released!

April 5, 2008 8:47pm - Ian Mallett - nickname: (geometrian)

I see, the gameApp from your other one works...
I generalised your algorithm, an got something that works with 2, 4, and 6 control points. Here it is.

Opps. Yes it is. I'll fix it. However, you could still have downloaded it from my website--those links were fine. effeemme, I'm afraid not. The shadow occluders must be rectangles. I'll look into changing that, though it wouldn't be easy.

March 30, 2008 9:05am - Francesco Mastellone - nickname: (effeemme)

Hey Ian, I'm almost done with the n-dimensional curves. Could your shadow system be adapted to use lines as occluders?

Man, I'm stupid. There ARE comments, plenty of them! For some reason I just skip the #(one line) ones! No more gripe with the library then. Good job!

March 28, 2008 4:24pm - Francesco Mastellone - nickname: (effeemme)

What I find to be wonderful actually is the shadow system. I could use it someday, but the main problem I have with the library is that it's a bit ugly, and it's not commented. A bit of an issue considering it's a library. The visual effects are beautiful though.

March 28, 2008 2:42pm - pymike - nickname: (pymike)

Nice rounded rects :) Those would be great for GUI!

March 28, 2008 2:13pm - Ian Mallett - nickname: (geometrian)

Version 2.0.0 released!

March 11, 2008 9:43pm - Ian Mallett - nickname: (geometrian)

I have 1.8.something. Thanks for finding this.

March 10, 2008 3:22pm - RB[0] - nickname: (roebros)

Ian, there a re a few different reasons - different OS, different pygame distro (I have the last stable, 1.7.1?), etc.

I'm not sure exactly, but this does happen to some people ;)
Keep up the good work :)

March 10, 2008 8:32am - Dylan J. Raub - nickname: (dylanjraub) - 4/5

Dude, you forgot to init? ...wow. I can't believe that. I'm sorry, but everybody knows you have to init a pygame module- oh, wait! Everybody can't know that because... never mind. All i'm saying is that it's a simple mistake that you should of noticed before you put it on this web site. I can't wait to see it!
(btw. I made my own that I bet is faster! MUAHAHAHA!)

For the errors below - I was getting them too, what is happening is that Ian, you forgot to call pygame.init(), which should really be done before you do *anything* in pygame.
I placed that line below the Screen = (512, 512) line.

March 9, 2008 12:57am - James Frederick - nickname: (monp)

i downloaded psyco and it didnt make a difference.

March 8, 2008 12:10am - Ian Mallett - nickname: (geometrian)

hmmmm. The only thing I can think of is Psyco, which I used to make the program faster. You could either install that or comment out the lines at the top. I put them in a try/except statement, but maybe that might not be alleviating some problems.

March 7, 2008 8:27am - Dylan J. Raub - nickname: (dylanjraub) - 2/5

I have the same problem. A little message appears not in IDLE, but in a window saying 'run time error!' or something like that. WHAT'S UP WITH THAT?!?

March 7, 2008 12:59am - Ian Mallett - nickname: (geometrian)

Which line?

March 6, 2008 2:17am - publeo - nickname: (publeo)

I have the same crash. Before an example even started the program is terminated
in commandline it gives an error:

Fatal python error: (pygame paracute) segmentation fault
this application has requested the runtime to terminate it in an unusual way.
please contact the applications support team for more information.

re-downloading didn't fix the problem

March 5, 2008 10:09pm - Ian Mallett - nickname: (geometrian)

Where is the crash occurring? You might try re-downloading it.

March 5, 2008 9:58pm - James Frederick - nickname: (monp)

For any demo i try to run it gives me that error.

March 5, 2008 9:28pm - Ian Mallett - nickname: (geometrian)

First, which demo are you running?
Second, none of the demos run without padlib.py, which is included in the download. If you do not have it, the program will not run.
I don't know what <i>exactly</i> caused your error, though.

March 4, 2008 10:59pm - James Frederick - nickname: (monp)

i am trying to get this to work but i keep getting an error.
Fatal python error: (pygame paracute) segmentation fault
this application has requested the runtime to terminate it in an unusual way.
please contact the applications support team for more information.

March 4, 2008 9:25pm - Ian Mallett - nickname: (geometrian)

I noticed that. You can set the antialias level to something lower, but this is really just a proof of concept.

March 4, 2008 12:24pm - pymike - nickname: (pymike)

Great particle effects! The antialiasing is too slow for use in a game though.