A special shading effect that emulates the lighting of a cylinder surface.
This effect adjusts the brightness of the color of a rectangular box to make it look like cylindrical. The brightness is adjusted as according to the Phong lighting model, in which the light source is from the viewer direction and is far away.
The cylinderEffect method returns an integer representing this effect. The integer can be used as the third argument to
Box.setBackground to apply the effect to
Box objects (including derived objects such as
TextBox objects).
This effect is automatically used for cylindrical bars in a
BarLayer. You may use this method to adjust the lighting parameters by using its return value as the second argument to
Layer.setBorderColor.
© 2012 Advanced Software Engineering Limited. All rights reserved.