User Tag List

Results 1 to 3 of 3

Thread: Dinamically change RGB coefficient

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jul 2015
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dinamically change RGB coefficient

    Hey everyone,
    I found this very interesting thread on Steam about dinamically changing the color of objects using little steps,
    but I couldn┤t get the file to work.

    https://steamcommunity.com/app/24817...6080864826398/

    Is there anyone who could help me?

    Thanks in advance,
    Nyme

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    In short, you should do the following:

    1) store your color "steps" somewhere (like alt. values or a list)

    2) subtract the current step color Red, Green, Blue components from the new step color R,G,B, components / divide the difference by number of gradations

    3) apply the new coefficient based on the gradation "step" you are in

    i.e. you are now R100 G100 B100 and next step is R120 G120 B150
    say you want to smoothly "fade" colors in 20 gradations
    let's do it only for red:
    R120 (next step) - R100 (current step) = 20
    20 / 20 (number of gradations) = 1
    so you know you need to add "1" to the red component
    repeat for the other two components, and you have:
    set RGB coefficient to GetRGB(GetRed(currentstepRGBcoefficient)+1,GetGree n(currentstepRGBcoefficient)+1,GetBlue(currentstep RGBcoefficient)+1,5)

    of course you need to store your calculated "add" part in three values
    and to keep track of current "gradation step" to perform exactly that number of gradations

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

    Join Date
    Jul 2015
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much, it really helped me a lot!

Similar Threads

  1. Replies: 2
    Last Post: 20th December 2012, 12:49 AM
  2. RGB coefficient?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th June 2012, 02:43 PM
  3. How do I change RGB Coefficient
    By ionside in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 29th June 2010, 11:47 PM
  4. Anyone know how to change the RGB Coefficient...
    By Krim in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 3rd October 2008, 12:07 AM
  5. RGB Coefficient
    By MechatheSlag in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 21st January 2008, 07:02 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
  •