Results 1 to 6 of 6

Thread: Finding Colors Function

  1. #1
    Join Date
    Sep 2008
    Posts
    241
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Finding Colors Function

    I'm developing a script that basically cooks anything anywhere.

    Is there any way to find colors that stand out from all the rest of the colors on the screen?

    Also, is there any way to find the most common color on the screen?

    I haven't really tried these so I need help...

    Thanks!
    PM me if you need any help with math.
    I can try to help you with anything!


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

    Default

    In your SCAR screen, hit F1. That will open the help screen and a list of SCARs functions. Hit Ctrl + F and type FindColor. From that line and below, there are many different forms of finding colors.

    If you need further explanation on what the difference is between the different functions, there are plenty guides in the tutorial forum.

    Hope I helped.
    Last edited by Coh3n; 06-26-2009 at 02:31 AM.

  3. #3
    Join Date
    Sep 2008
    Posts
    241
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I meant finding the most common color on the screen.

    It would require an array of size 1280 x 1024 for me, so that is clearly inefficient.

    Any way to do this?


    Oh never mind. Thanks Coh3n.

    CountColor() works perfectly.

    Uhmm, what is the highest color range in SCAR?
    PM me if you need any help with math.
    I can try to help you with anything!


  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Colour range in what sense?

    Tolerance, or between 0 and clWhite?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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

    Default

    Quote Originally Posted by xXxBlender3DxXx View Post
    Oh never mind. Thanks Coh3n.
    No problem, glad I could help. As for your other question, Nava can answer much better than me.

  6. #6
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by xXxBlender3DxXx View Post
    I meant finding the most common color on the screen.

    It would require an array of size 1280 x 1024 for me, so that is clearly inefficient.

    Any way to do this?


    Oh never mind. Thanks Coh3n.

    CountColor() works perfectly.

    Uhmm, what is the highest color range in SCAR?
    $000000 and $FFFFFF

    or
    Abs. Black -> Abs. White
    0 -> 16777215
    Current Project: Catching up. XD. Potentially back for the summer, depending on how things go.

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
  •