Wiki Page Content

Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2009-12-13 06:56:43
Size: 701
Editor: SheenaSmith
Comment: content added
Revision 4 as of 2009-12-13 07:09:48
Size: 1149
Editor: SheenaSmith
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
||<style="color: #808080;">Uint8||<style="color: #808080;">'''unused'''|| ||<style="color: #808080;">Uint8||<style="color: #808080;">'''unused'''||<style="color: #808080;">32 bit placeholder||
Line 23: Line 23:
If you have RGB color values you would use decimal values in this struct.
 ''Example'': orange = 255,165,0 so set r=255, g=165, b=0.
If you have HTML color codes you would use hexidecimal values in this struct.
 ''Example'': orange = #FFA500 so set r=0xFF, g=0xA5, b=0x00.
Line 27: Line 32:
 .[[SDL_GetDisplayPalette]]
 .[[SDL_SetDisplayPalette]]
Line 28: Line 35:
 .[[SDL_GetTexturePalette]]
 .[[SDL_SetTexturePalette]]

SDL_Color

A structure that contains color information.

Data Fields

Uint8

r

the red component in the range 0-255

Uint8

g

the green component in the range 0-255

Uint8

b

the blue component in the range 0-255

Uint8

unused

32 bit placeholder

Code Examples

You can add your code example here

Remarks

SDL_Color and SDL_Colour are interchangeable.

If you have RGB color values you would use decimal values in this struct.

  • Example: orange = 255,165,0 so set r=255, g=165, b=0.

If you have HTML color codes you would use hexidecimal values in this struct.

  • Example: orange = #FFA500 so set r=0xFF, g=0xA5, b=0x00.


CategoryStruct

None: SDL_Color (last edited 2015-09-17 21:38:52 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit