User Tag List

Results 1 to 4 of 4

Thread: Compare pixel color in fastloops

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Compare pixel color in fastloops

    I'm using HWA, latest version, and using the Pixel Object extension crashes my game so that doesn't seem to be an alternative.
    What I want to do is compare every pixel in the frame (250x186), and if the pixel is green, save 1 to an array. If the pixel is red, save 2. Blue 3. White 0.
    So what I've got now is a fastloop going through the frame and write values into the array. but I' haven't got anything to check the color of the pixel representing xy values.
    I searched the forums and found someone mention "GetRBGat" but I can't find it. Screen Pixel doesn't seem to be able to compare color as a condition.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Compare pixel color in fastloops

    Use the Surface object off-screen and just grab the entire frame area.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Compare pixel color in fastloops

    LB, that doesn't work in HWA, unfortunately. I would need an HWA SDK so I could add support for it...

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Compare pixel color in fastloops

    Ah! Good idea. I can see that it has a "get color from pixel", very nice

    Another question though, since I've never used the surface object before and it has so many operations -- how do you grab the entire frame area and paste it into the Surface object?

    EDIT: what exactly doesn't work?

Similar Threads

  1. [Request] Get Pixel Color Object
    By macca02 in forum Extension Development
    Replies: 6
    Last Post: 12th November 2013, 08:56 AM
  2. Get color/ RGB value from specific pixel
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th July 2012, 03:41 PM
  3. Get the color of a pixel at X,Y
    By Keith in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 19th September 2011, 03:50 AM
  4. Collision Pixel Color
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th December 2010, 04:17 PM

Posting Permissions

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