Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== MIXCOLORS Method (System) ====== ==== Description ==== This method returns the result of mixing two colors using weighted ratios and a luminosity value. ==== Syntax ==== <code> MixedColor = Exec_Method( "SYSTEM", "MIXCOLORS", Color1, Color2, LumRatio, Weight1, Weight2 ) </code> ==== Parameters ==== ^Name^Required^Description^ |Color1|Yes|First color to mix.| |Color2|Yes|Second color to mix.| |LumRatio|No|The ratio for the new color's luminosity. MIXCOLORS multiplies the luminosity of the mixed color by this ratio. Defaults to 1.| |Weight1|No|The weighted ratio for the first color. Defaults to 1.| |Weight2|No|The weighted ratio for the second color. Defaults to 1..| ==== Returns ==== The mixed color value. ==== Remarks ==== N/A ==== Example ==== <code> //// Mix yellow and green for a darker, muddy green color// Color1 = 65535 ; //// Yellow// Color2 = 65280 ; //// Green// LRatio = 0.6 ; //// Make it darker// NewColor = Exec_Method( "SYSTEM", "MIXCOLORS", Color1, Color2, LRatio, 1, 1 ) </code> ==== See Also ==== SYSTEM ALPHACOLOR method, SYSTEM DARKENCOLOR method, SYSTEM LIGHTENCOLOR method. guides/oi10/presentation_server/mixcolors_method_system.txt Last modified: 2023/10/25 10:49by 127.0.0.1