<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.orx-project.org/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.orx-project.org/wiki/feed.php">
        <title>Orx Learning - en:examples:color</title>
        <description></description>
        <link>https://www.orx-project.org/wiki/</link>
        <image rdf:resource="https://www.orx-project.org/wiki/_media/favicon.ico" />
       <dc:date>2026-04-15T03:06:01+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.orx-project.org/wiki/en/examples/color/convert_hex_color_string_to_orxcolor?rev=1759253179&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.orx-project.org/wiki/en/examples/color/main?rev=1759253179&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.orx-project.org/wiki/_media/favicon.ico">
        <title>Orx Learning</title>
        <link>https://www.orx-project.org/wiki/</link>
        <url>https://www.orx-project.org/wiki/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://www.orx-project.org/wiki/en/examples/color/convert_hex_color_string_to_orxcolor?rev=1759253179&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-09-30T17:26:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Convert a hex color string to orxColor</title>
        <link>https://www.orx-project.org/wiki/en/examples/color/convert_hex_color_string_to_orxcolor?rev=1759253179&amp;do=diff</link>
        <description>Convert a hex color string to orxColor

Code



  std::string sColor = &quot;#ff8080ff&quot; or &quot;0xff8080ff&quot;; 
  
  // Erase &#039;#&#039; from it, if it&#039;s in 0x format, do nothing 
  if(sColor.length() != 0 &amp;&amp; sColor.at(0) == &#039;#&#039;)
    sColor.erase(0,1);
  
  // RGBA byte order, this could be rgba or argb or bgra
  std::string byteOrder = &quot;rgba&quot;;
  
  unsigned long hexValue=0;
  // convert hex string to unsigned long, strtoul takes care of &#039;0x&#039; format
  hexValue = std::strtoul(sColor.c_str(),NULL,16);
  
  int n = …</description>
    </item>
    <item rdf:about="https://www.orx-project.org/wiki/en/examples/color/main?rev=1759253179&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-09-30T17:26:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Color Examples</title>
        <link>https://www.orx-project.org/wiki/en/examples/color/main?rev=1759253179&amp;do=diff</link>
        <description>Color Examples

convert_hex_color_string_to_orxcolor 
Convert hex color string to orxColor
colorcolour 
See Color Tutorials</description>
    </item>
</rdf:RDF>
