Sub Test() Dim s As Shape Set s = ActiveLayer.CreateRectangle2(0, 0, 2, 2, 0.5, 0.5, 0.5, 0.5) s.Fill.ApplyFountainFill CreateRGBColor(255, 0, 0), CreateRGBColor(255, 255, 0), , 45 s.Outline.Width = 0.3 s.Outline.Color.RGBAssign 0, 128, 0 s.Transparency.ApplyFountainTransparency 0, 100, cdrLinearFountainFill s.Transparency.AppliedTo = cdrApplyToOutlineEnd Sub