User Tag List

Results 1 to 6 of 6

Thread: Color calculations

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Color calculations

    Right.
    I've started playing with 'Replace color' in MMF2. How do you retrieve and set a new color through a calculation? Or rather, how does MMF2 equate the specific color?

    I tried setting an object to the brightest red color using the number 255, this worked. When i tried to set the color to 255255, expecting bright yellow, it returned bright green. 510 also returns bright red and setting the color to a random of 16 million seems to only return hues between red, yellow and green, no blues in there at all.

    Could someone who knows explain this, please?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid 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)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Color calculations

    Use the function GetRGB(>Enter red value<, >Enter green value<, >Enter blue value<).

    Example: getrgb(255,255,0) for yellow.

    Note: This is the same as (Blue*65536 + Green*256 + Red)
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Color calculations

    Thanks.
    I also just found out that MMF can't do random above 100,000 or so. Using the Random object gave a lot more colors... huff, you learns something every day.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Color calculations

    I would use GetRGB(random(256),random(256),random(256)), but I guess the Random object works too...

  5. #5
    No Products Registered

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

    Re: Color calculations

    Quote Originally Posted by ruffgang
    Thanks.
    I also just found out that MMF can't do random above 100,000 or so. Using the Random object gave a lot more colors... huff, you learns something every day.
    i think it's actually 32767... which by MMF's color format is orange

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Posts
    402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Color calculations

    I was going to ask the same question

Similar Threads

  1. Help with calculations!
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th July 2013, 12:29 PM
  2. calculations via string
    By Skyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th November 2012, 07:31 PM
  3. Heavy calculations
    By King_Cool in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 25th July 2012, 01:39 AM
  4. mmf 2 is silt! - calculations per second
    By EasySite in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 7th August 2010, 03:32 AM
  5. Calculate Calculations?
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2007, 05:46 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
  •