Sign in to follow this  
Fair Strides

TOOL:RGB-BGR Converter

Recommended Posts

RGB-BGR Converter


This conversion tool is simply a converter between the standard hexadecimal RGB colour format and the decimal BGR color format.

 

This BGR format is used in the Fog settings and the Tweak Colour field used in the UTD structs in a .git file (though, the tweak colour might be useable in all of the Type structs...).


 

Share this post


Link to post
Share on other sites

Should anyone wonder how to go the other way around, i.e. convert BGR to RGB, all you need to do is solve this equation:

BGR - R - 256 * G - 65536 * B = 0

where BGR is the BGR value and R, G, B are the RGB values that need to be between 0 and 255.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this