backgroundColor
- string
The background color of the Drawable. Can be passed
as hexadecimal RGB or RGBA values (see here
for details on RGBA colorcoding). In case RGB is
used, the alpha value is set to full opacity.
Default Value: #00000000 (transparent)
fillColor
- string
The fill color of the Drawable. Can be passed as
hexadecimal RGB or RGBA values (see here
for details on RGBA colorcoding). In case RGB is
used, the alpha value is set to full opacity.
Default Value: #000000FF (solid black)
fontStyle
- string
The font style of the text. Valid values are
specified in AR.CONST.FONT_STYLE.
Default Value: AR.CONST.FONT_STYLE.NORMAL
outlineColor
- string
The fill color of the outline bounding the Drawable.
Can be passed as hexadecimal RGB or RGBA values (see
here
for details on RGBA colorcoding). In case RGB is
used, the alpha value is set to full opacity.
Default Value: #00000000 (transparent)
outlineSize
- int
Defines the thickness of an outline which is printed
from the boundary of the Drawable towards the
inside.
Valid values are in the range between 0 and 128. A value of 0 means no outline, a value of 128 covers the entire Drawable.
Valid values are in the range between 0 and 128. A value of 0 means no outline, a value of 128 covers the entire Drawable.
Example:
var circle = new AR.Circle(20, { style : { fillColor : '#FFFFFF', //white circle outlineColor : '#000000' //black outline } });
circle.style.outlineSize = 0; //no outline, circle appears fully white circle.style.outlineSize = 128; //outline fully covers the circle, circle appears fully black circle.style.outlineSize = 90; //circle appears half black (outer area), half white (inner area)
Default Value: 0