User Tag List

Results 1 to 7 of 7

Thread: colour copying/ mixing and replacing

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    colour copying/ mixing and replacing

    I currently have a problem that involves my professors lab games as some may know of. I am trying to better it by not have the colours pre made for mixing but by giving freedom to the mixing.
    Currently it goes/ pick up flask of colour/ mix with other flask of colour/ get new colour (calclated direction from previous two colours)
    what i want to do is / pick up flask with colour (copy RGB) mix with other flask of colour (copy RGB2)
    /get new colour (weird mathamtical calculation between the two RGB collections to give a new RGB3)
    if anyone understands and or better yet can help solve this problem please reply. MMF would be good but will except MMF2 or TGF2 help also.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    Here's my understanding of colors:

    If you are mixing light, then all you have to do is add up the colors. E.g., Mixing red and green light would be RGB(255,0,0) + RGB(0,255,0) = RGB(255,255,0).

    Mixing substances such as paint is different. When you look at paint, the reason it may appear blue, for example, is because it is absorbing red and green light. And if paint appears purple, that is because it absorbs green light.

    Following this, the mixing of colored substances combines their properties of absorbing light.

    Suppose we want to mix together turquoise (RGB(0,255,255)) with yellow (RGB(255,255,0)). Turquoise absorbs 100% of red light, and yellow absorbs 100% of blue light. Therefore a mixture between these colors would absorb 50% of red light and 50% of blue light. Therefore, the mixed color would be RGB(128,255,128).

    At least, that's my current understanding. Hope that helps.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    frateroshiCORP HQ
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    walrus has the right idea. except that subtractive colour mixing (aka: paint) uses a different primary colour than additive mixing (aka: computer screen): RBY instead of RGB. but you know, the difference will be negligible. i would also recogmend what he said, just average each component colour value between the 1st and 2nd colours, and you'll get a convincing effect.

    but if you wanted to get tricky, you could always do a wieghted ratio, taking into consideration the volumes of liquid. just a suggestion, as long as you're doing the math anyways.

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    okay that's useful yes and i can work with that, but now all i need to know is how do i go about collecting a colour from an active object(storing it) collecting a colour from another active object(storing that) then doing the mixing of coulrs and replacing the two previous with the new mixed colour?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    []walrus has the right idea. except that subtractive colour mixing (aka: paint) uses a different primary colour than additive mixing (aka: computer screen): RBY instead of RGB. but you know, the difference will be negligible. i would also recogmend what he said, just average each component colour value between the 1st and 2nd colours, and you'll get a convincing effect.

    but if you wanted to get tricky, you could always do a wieghted ratio, taking into consideration the volumes of liquid. just a suggestion, as long as you're doing the math anyways. [/]

    Actually, I think that's a common misconception. Mixing paint, yes, you can get by on mixing red, blue, and yellow. However, the actual primary colors of paint are magenta, turqoise, and yellow. Red and blue are close enough to magenta and turqoise, so you can mix with them OK. However, I think that professional painters like to use the real primary colors to get reliable mixes.


    []okay that's useful yes and i can work with that, but now all i need to know is how do i go about collecting a colour from an active object(storing it) collecting a colour from another active object(storing that) then doing the mixing of coulrs and replacing the two previous with the new mixed colour? [/]

    I think I might be able to make an example for you. Hang tight.

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    thank you that would be great

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: colour copying/ mixing and replacing

    OK here's your example.

    Enjoy!

Similar Threads

  1. Set Colour for counters event on iOS seems to change to the wrong colour
    By Diablohead in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 15th December 2013, 11:23 AM
  2. Mixing a String?
    By Jahkri in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 16th October 2013, 10:10 AM
  3. Replies: 4
    Last Post: 27th August 2012, 08:34 AM
  4. Hex Colour From Colour Selector Object
    By Steven in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 26th June 2007, 09:52 PM
  5. Directshow effects and mixing
    By Cronoslogic in forum Extension Development
    Replies: 1
    Last Post: 17th March 2007, 12:34 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
  •