Commits

illume committed e867198

Added some notes about Color instead of tuple for some Surface functions.

Comments (0)

Files changed (1)

 in a game or realtime situation.
 
 This function will temporarily lock and unlock the Surface as needed.
+
+Returning a Color instead of tuple, New in pygame 1.9.0.
+Use tuple(surf.get_at((x,y))) if you want a tuple, and not a Color.
+This should only matter if you want to use the color as a key in a dict.
 <END>
 
 
 Return a list of up to 256 color elements that represent the indexed colors
 used in an 8bit Surface. The returned list is a copy of the palette, and 
 changes will have no effect on the Surface.
+
+Returning a list of Color instances instead of tuples, New in pygame 1.9.0
 <END>
 
 
 
 Returns the red, green, and blue color values for a single index in a Surface
 palette. The index should be a value from 0 to 255.
+
+Returning Color instance instead of a tuple, New in pygame 1.9.0
 <END>
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.