Pixas Slope Primitives Added
The Four directions of Slope Primitives has been added into Pixas.
The parameters for the Slope constructor (take SlopeEast for example):
public function SlopeEast(_dms:SlopeDms = null, _color:SlopeColor = null, _border:Boolean = true)
_dms:SlopeDms - the SlopeDms dimension obj for rendering
_color:SlopeColor - the SlopeColor color obj for rendering
_border:Boolean - whether show border and highlight
The Slope Group has four sides: left slope, right slope, left side and right side. As it was introduced in the Color Tutorial, the
SlopeColor.getByHorizontalColor(); static method helps you calculate values from light to dark automatically and returns an instance of SlopeColor which contains the values set.
Note: The horizontal side is taken as the reference side, in order to keep the same light source with other Primitives. However, you should keep in mind that the horizontal side does not really exist in each Slop Primitive. And the rendering effect for combination of Cube and Slopes will be like this: