Results 1 to 3 of 3

Thread: [#46] RadialWalkAutoColor

  1. #1
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default [#46] RadialWalkAutoColor

    Just a simple function to go along with the new AutoColor.scar. This function just uses a TAutoColorInfo record to radial walk and is more accurate as it uses ColorToleranceSpeed(2).

    Very simple to use:
    SCAR Code:
    RadialWalkAutoColor(srl_VarrockRoadColor, 45, 90, 60, 2, 2);

    No need to set the CTS (if that's what you did before) or call an auto coloring function.

    For reference:
    SCAR Code:
    function RadialWalkAutoColor(autoColorConst, sRad, eRad, r, modX, modY: Integer): Boolean;
    var
      acInfo: TAutoColorInfo;
      curCTS: Integer;
      hMod, sMod: Extended;
    begin
      curCTS := GetColorToleranceSpeed;
      GetColorSpeed2Modifiers(hMod, sMod);

      acInfo := AutoColorEx(autoColorConst);
      with acInfo do
      begin
        ColorToleranceSpeed(2);
        SetColorSpeed2Modifiers(hueMod, satMod);

        result := RadialWalkTolerance(color, sRad, eRad, r, modX, modY, lumTol);
      end;

      SetColorSpeed2Modifiers(hMod, sMod);
      ColorToleranceSpeed(curCTS);
    end;

    Enjoy,
    The Development Team

  2. #2
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Sexy!

    edit: we are still at #42 tho

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  3. #3
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    Sexy!

    edit: we are still at #42 tho

    ~RM
    Yeah, I know, but I just kept adding to the previous number so it would appear at the top. Lol

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •