Bit depth in line
I've just been trying to learn Python using "How to think like a Computer Scientist". I reached this point where it refers to GASP and provides examples:
http://
Unfortunately Gasp wasn't included in the Ubuntu Python so went to FAQ 31 here, had a few false starts downloadinf and installing, but finally did.
Then tried the first example on that page above, and the circle drew and the box drew but the line errored out with:
>>> Line((100, 400), (580, 200))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
backend.
File "/usr/lib/
(end[0], flip_coords(end[1], obj.sprite.rect)), False)
ValueError: unsupported bit depth for aaline draw (supports 32 & 24 bit)
I don't know if this applies but I use a Thinkpad 600E and it has its graphics mode set to 16 bit color -- I have to do that to be able to run reasonably fast in Ubuntu. Please don't obsolete people like us in the name of graphics progress! -- other than GASP's line drawing function, I haven't had a single problem running anything else in Ubuntu -- including videos, and a VMware virtual machine for win98se.
In fact your box and circle drew fine -- only the line had this problem -- if GASP is simple old-style graphics for educational purposes, seems like even 8 bit color ought to work! :) (I used to use a TRS-80, and an Amiga, so I remember -- well, of course even the IBM-PC CGA back then.) Do we really need 24 million shades for a simple line? I don't mind choosing from 65535.
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- GASP Core Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- gilf
- Solved:
- Last query:
- Last reply: