Doc - CreateSprite - Add a remark

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Doc - CreateSprite - Add a remark

Post by Olliv »

I think it could be interesting to add such this remark in the doc:

---
(CreateSprite)

The new sprite created is black. Pixel default contents are:
0, 0, 0 without alpha channel
0, 0, 0, 255 with alpha channel (opaque black)
---

An other way would consist in the add of an option as #PB_Sprite_Transparent which would build a transparent black sprite. Every pixel would be then set to 0, 0, 0, 0.