[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Displaying HOT-> COLD RGB colors



PureBytes Links

Trading Reference Links

BlankThank you Tomasz!

herman
  -----Original Message-----
  From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
Behalf Of Tomasz Janeczko
  Sent: January 5, 2007 11:56 AM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: Re: [amibroker] Displaying HOT-> COLD RGB colors


  Use ColorHSB - its "Hue" parameter is just what you are searchinf for.

  Best regards,
  Tomasz Janeczko
  amibroker.com
    ----- Original Message -----
    From: Herman
    To: AmiBroker YahooGroups
    Sent: Friday, January 05, 2007 4:03 PM
    Subject: [amibroker] Displaying HOT-> COLD RGB colors


    How would I create a function to generate RGB colors ranging in 100
steps (1%) to create Hot->Cold colors like we see in the 3D charts?

    Function getRGBColorTemperature( MyVariable ) // 0 <= MyVariable <= 100;
        {
        Red    = f(MyVariable);
        Green = f(MyVariable);
        Blue   = f(MyVariable);
        return ColorRGB( Red, Geen, Blue );
        }

    Many Thanks!

    herman

  



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 1/5/2007 11:11 AM