ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
Re: [pygame] [BUG] blend modes and rotated images not respecting color key or maybe alpha.
by Dr0id other posts by this author
Aug 10 2007 6:31AM messages near this date
[pygame] [BUG] blend modes and rotated images not respecting color key or maybe alpha. | Re: [pygame] [BUG] blend modes and rotated images not respecting color key or maybe alpha.
Ren� Dudfield schrieb:
>  Hi,
> 
>  DR0ID, do you have a script which demonstrates this bug?
> 
>  Or can you explain it further?
> 
>    
Hi

there you have a script. Blendmodes only work with pygame1.8. Users 
using pygame1.7 can start the script, but should not change the 
blendmode pressing 'm'.

Perhaps I have done something wrong, please correct any mistake you 
find. Or perhaps I have forgotten an interesting case.

Results:

rotate() screws up on normals surfaces and surfaces with per surface alpha.

rotozoom() screws up all except surfaces with per pixel alpha

Blendmodes do not respect colorkey nor per pixel alpha. I do not know if 
this is intentional.

rotozoom fills the space in with black, therefore you will not see any 
difference in blendmodes 'add' or 'sub' (because adding 0 or subtracting 
0 gives the same number).

An is there a reason why colorkey and per pixel alpha are mutual 
exclusive? (is that a constraint from SDL?)

~DR0ID
Thread:
renesd
Dr0id
renesd

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved