ChartDirector 7.0 (PHP Edition)

AngularMeter.addGlare


Usage

addGlare([ radius [, span [, rotate [, glareRadius [, intensity ]]]]])

Description

Adds glare effect to the meter.



In the above meters, the brightened region on the face of the meter the glare effect.

The glare effect is created by brightening part of the meter face. In the above meters, the face can be considered the part of the meter inside the silver ring, but including the silver ring itself. The face is divided by an arc, of which one part is brightened. The glare effect works best for meters with dark background.

Arguments

ArgumentDefaultDescription
radiusNoValueThe radius of the face of the meter. The default is the meter scale radius as set by AngularMeter.setMeter.
span135The angular span of the arc that divides the face into two parts. The dividing arc intersects with the face border at two points. The angular span is defined as center angle of these two points (that is, the angle subtended at the meter center by these two points).
rotate0By default, the glare will be symmetrically with respect to the vertical axis. This argument can be used to rotate the glare clockwise in degrees.
glareRadiusNoValueThe radius of the arc that divides the face into two parts. A positive value means the arc will result in a convex glare, while a negative means concave glare. The default is equal to 1.5 times of the face radius.
intensity0.13The intensity of the glare, which must be from 0 to 1. A value of 0 means no glare, while a value of 1 means the glare will be 100% white.

Return Value

None