API Documentation > CorelDRAW > 2025-v26 > Color > IVGColor
Color.BlendWith method
Mixes the color with the given color using the specified ratio
Syntax:
Sub BlendWith(ByVal Color As Color, ByVal MixRatio As Long)
Parameters:
Name Type Description
Color
MixRatio
Long
Remarks:
The BlendWidth method mixes the color with the given color using the specified ratio.
Examples:
The following VBA example creates two colors, blends them together, and fills the active shape with the blended color.
Sub Test()
Dim c1 As Color
Dim c2 As Color
'Blend a Red and Green Color at 50%
Set c1 = CreateRGBColor(255, 0, 0)
Set c2 = CreateRGBColor(0, 255, 0)
c1.BlendWith c2, 50
ActiveShape.Fill.ApplyUniformFill c1 
End Sub