Previous Document Next Document

Object Model Reference : Classes : E : EffectContour : Properties : EffectContour.ColorAcceleration


EffectContour.ColorAcceleration

Property ColorAcceleration As Long

Description

Member of EffectContour

The ColorAcceleration property returns or specifies the rate of color aceleration in a contour effect. Higher numbers allow the colors to move more quickly through the spectrum as they approach the end object. You can change the progression of the outline and fill colors.

VBA example

The following VBA example creates a contour effect with non-uniform spacing and color transition.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateEllipse2(5.5, 4, 2)
 s.Fill.UniformColor.RGBAssign 255, 0, 0
 s.Outline.SetProperties 0.05, , CreateRGBColor(0, 255, 255)
 With s.CreateContour(cdrContourOutside, 0.5, 5, , , CreateRGBColor(255, 255, 0)).Contour
  .LinkAcceleration = False
  .ColorAcceleration = 50
  .SpacingAcceleration = -50
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.