Skip to main content

Class: InkStyle

Rendering.InkStyle(layout, pointProps, sheetopt)

Stroke stylesheet

Constructor

new InkStyle(layout, pointProps, sheetopt)

Parameters:
NameTypeAttributesDefaultDescription
layoutArray.<PathBuilding.PathPoint.Property>The layout of path points
pointPropsPathBuilding.PathPointPropertiesStatic configuration for path points
sheetobject<optional>Inital stylesheet
Properties:
NameTypeDescription
redbyteRed color value
greenbyteGreen color value
bluebyteBlue color value
alphafloatAlpha color value
sizefloatSize value associated with the path point
rotationfloatRotation value associated with the path point
scaleXfloatX dimension scale value associated with the path point
scaleYfloatY dimension scale value associated with the path point
scaleZfloatZ dimension scale value associated with the path point
offsetXfloatX dimension offset value associated with the path point
offsetYfloatY dimension offset value associated with the path point
offsetZfloatZ dimension offset value associated with the path point
colorCommon.ColorShorthanded for red, green, blue and alpha properties
blendModeRendering.BlendModeLayer blending configuration
visibilitybooleanPath visibility

Methods

clear()

Clear stylesheet

reset(sheetopt)

Reset stylesheet to initial value

Parameters:
NameTypeAttributesDefaultDescription
sheetobject<optional>initial sheetStyle properties

Home