Color
This page is recommended for cleanup.

Color in Brutus2D is represented as a hex color with 8 digits instead of the commonly accepted six. For example, white in the accepted six digit : &hFFFFFF and the 8 digit of Brutus2D : &hFFFFFFFF. The Brutus2D hex colors are identical to normal six digit hex colors except the first two digits are the alpha transparency. Brutus2D's rgb() function converts separate color values into the required hex value. This function can always be used when ever you need a color value. There is also a argb() function which also accepts the alpha value. This can be used when you want to include alpha transparency.

Therefore, colors in Brutus2D can be represented as the normal six digit hex color or 8 digits including alpha transparency.

Related Pages

Backlinks

These pages link back to this page. You may find them helpful.

Discuss

This gave me hell... :)
hartnellhartnell 1215084085|%e %b %Y, %H:%M %Z|agohover

I think this page is useful because the extra byte for alpha gave me hell when first learning B2D. :)

— Hartnell

unfold This gave me hell... :) by hartnellhartnell, 1215084085|%e %b %Y, %H:%M %Z|agohover
Add a new comment
This article is a stub. You can help us improve Brutus2D Wiki Complete by expanding it.
page tags: color graphics
page_revision: 3, last_edited: 1215196340|%e %b %Y, %H:%M %Z (%O ago)