oi10:presentation_server:mixcolors_method_system

MIXCOLORS Method (System)

This method returns the result of mixing two colors using weighted ratios and a luminosity value.

 
MixedColor = Exec_Method( "SYSTEM", "MIXCOLORS", Color1, Color2, LumRatio, 

                             Weight1, Weight2 )
NameRequiredDescription
Color1YesFirst color to mix.
Color2YesSecond color to mix.
LumRatioNoThe ratio for the new color's luminosity. MIXCOLORS multiplies the luminosity of the mixed color by this ratio. Defaults to 1.
Weight1NoThe weighted ratio for the first color. Defaults to 1.
Weight2NoThe weighted ratio for the second color. Defaults to 1..

The mixed color value.

N/A

 
//// 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 )
 
 
 

SYSTEM ALPHACOLOR method, SYSTEM DARKENCOLOR method, SYSTEM LIGHTENCOLOR method.

  • oi10/presentation_server/mixcolors_method_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1