Comments (2)
Original comment by Lenard Lindstrom (Bitbucket: llindstrom, GitHub: llindstrom):
This request would take significant refactoring, particularly in pygame.base and pygame.color and pygame.pixelarray. The simplest approach is to add '' and '#' handling to _RGBAFromColorObj. Then anything in Pygame that accepts a color value would also take a string. It would also mean
#!python
pixel_array[...] = 'black'
would be allowed. I recall some objection to that, but if it is not a problem I can tackle this issue.
Lenard
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Marking as an enhancement proposal.
It would be nice to be able to do things like this:
surf.fill('black')
surf.fill('#FFEECCF0')
I've often wanted this feature myself, and others have suggested it before.
This needs some thought, and a lot of testing to see what side effects this could have. Also, we need to decide on scheduling if this is a much wanted feature or not, and how much work it would take to implement/test.
from pygame.
Related Issues (20)
- Cant install cant download via pygame site either... HOT 1
- Segfault when setting a pixel in a PixelArray
- keyboard input won't work HOT 1
- 安装pygame模块后,import后报错
- program2 HOT 2
- Segmentation fault when updating too often HOT 1
- ImportError: cannot import name 'Font' from partially initalized module 'pygame.font' (most likely due to a circular import) HOT 1
- Pygame window not coming up on Windows
- pygame 2.5.0 file is not a Windows BMP file
- Problem in converting a simple pygame file into apk using buildozer
- Snake.go HOT 2
- Add clear() function to pygame.scrap (also, rename?) HOT 1
- Downlaoding Pygame Not Working HOT 2
- I keep getting this error and my pygame doesn't run, need help
- improper KEYDOWN events
- Can't get title bar to show when having a large screen size HOT 1
- Bug about pygame.draw.polygon() HOT 9
- Pygame Keyboard Event Handling Not Working with ALE Environment in WSL 2
- KEYDOWN监听不到字母 HOT 1
- I get an error when I log out of my game: (line 145 pygame.display.update(); pygame.error: video system not initialized) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame.