class M_Style
The M_Style class represents the visual style of a shape, either the shape's own style or an inherited style
Member Functions
void SetSoftEdge(radius)
Applies a soft edge effect.
Return value: none radius (float): radius of the blur
void SetShading(angle, offset, blur, color)
Applies a shading effect.
Return value: none angle (float): shading angle offset (float): shading offset blur (float): blur radius color (rgb_color): shading color
Member Variables
fName (LM_String)
The name of the style.
fDefineFillCol (bool)
True if this style defines a fill color, otherwise false.
fFillCol (AnimColor)
The style's fill color.
fDefineLineWidth (bool)
True if this style defines a line width, otherwise false.
fLineWidth (float)
The style's line width.
fDefineLineCol (bool)
True if this style defines a line color, otherwise false.
fLineCol (AnimColor)
The style's line color.
class M_Style { void SetSoftEdge(real radius); void SetShading(real angle, real offset, real blur, rgb_color color); void SetShadow(real angle, real offset, real blur, rgb_color color); void SetHalo(real haloRadius, real blurRadius, rgb_color haloColor, bool haloOnly); void SetStrokeSoftEdge(real radius); void SetStrokeHalo(real haloRadius, real blurRadius, rgb_color haloColor, bool haloOnly); LM_String fName; bool fDefineFillCol; AnimColor fFillCol; bool fDefineLineWidth; real fLineWidth; bool fDefineLineCol; AnimColor fLineCol; int32 fLineCaps; // 0 - none, 1 - round LM_String fBrushName; bool fBrushIsColor; bool fBrushAlign; real fBrushJitter; real fBrushSpacing; bool fBrushRandomize; bool fBrushTint; };