User Tag List

Results 1 to 4 of 4

Thread: Problem getting the color of a scaled object (gradient)

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SergioAndre's Avatar
    Join Date
    Mar 2009
    Location
    Argentina
    Posts
    105
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Problem getting the color of a scaled object (gradient)

    Hi guys!

    I'm trying to get a specific color of a gradient based on the position of an Active (an arrow in this case) in order to change the background color to the one obtained. The problem is that I also want to make the gradient scalable but by doing this the color is no longer obtained correctly, it's like the gradient is not really scaled and the color is still obtained as if it were the original size.

    Sin-titulo-1.jpg

    I don't think I've done something wrong so it definitely looks like a bug.

    I leave an example with the problem. Tell me what you think... and if anyone knows a way to do it without this bug. Thanks!

    Getcolorbug.mfa

  2. #2
    Clicker

    Multimedia Fusion 2

    Join Date
    Aug 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea why this is happening? im not sure on what the math would be exactly but for example you could try adding the scaling into the get rbg event?

    Set Background Colour: RGBAt( "Color bar", X( "Arrow" ) - ( X Left( "Color bar" ) * value( "Trackbar" ) ) / 100, 0 )

    im not sure if this will work but maybe a workaround for it but you are right i have alot of issues with scalling in mmf.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Feb 2015
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, bump this up as I would like to know why this is happening also, if someone can explain.

    I managed to work around it using individual actives for each colour, scaling and moving them.

    GradScale.mfa

    I was worried this problem would happen when scaling an application, but I tried it and seems ok .

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SergioAndre's Avatar
    Join Date
    Mar 2009
    Location
    Argentina
    Posts
    105
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stiggits View Post
    Hi, bump this up as I would like to know why this is happening also, if someone can explain.

    I managed to work around it using individual actives for each colour, scaling and moving them.

    GradScale.mfa

    I was worried this problem would happen when scaling an application, but I tried it and seems ok .
    For gradients with few colors it's fine but it is not an option if you want to use a gradient with many colors.

    Anyway, I did a few more tests and was able to solve it using the following formula:
    Set RGB coefficient to RGBAt( "Gradient", ( X( "Arrow" ) - X Left( "Gradient" ) ) / XScale( "Gradient" ), 0 )

    GetColorExample.mfa

Similar Threads

  1. Problem with overlapping rotated/scaled active objects
    By mobichan in forum iOS Export Module 2.5
    Replies: 1
    Last Post: 3rd November 2015, 07:42 PM
  2. bg color gradient at Runtime?
    By MarkusR in forum Fusion 2.5
    Replies: 14
    Last Post: 2nd March 2015, 12:21 PM
  3. [ How to ] open source tuto -> Gradient scores effect / Effet de score gradient
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th February 2013, 08:42 PM
  4. MMF2 - Frame Color Gradient or Quck Backdrop
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th October 2007, 03:30 PM
  5. Problem with gradient calculator object.
    By Hristos in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th May 2007, 10:49 AM

Posting Permissions

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