by ben-o » 26 Feb 2013, 15:43
Stroke parameters
Pressure:
Returns the tablet's pen pressure.
Nears 0 when no pressure is applied and goes to 1 at full pressure.
Speed
Returns the stroke's speed.
Attaining a speed of 1 requires a very fast movement so you may want to multiply it by for example 5 to get a easier effect.
Time
Time elapsed since the start of the stroke.
It goes above 1 very quickly so you might need to divide it by 10 or 20 for direct time driven use. Is a good input for sinus or noise.
Length
Length of the stroke. Just like the time it attains 1 very quickly. Also a good input for sinus or noise.
Tilt
The altitude of the tablet's pen inclination.
Returns 1 when the pen is perpendicular from the tablet's surface and nears 0 when it is tilted very close to the surface.
Azimuth
The direction in which the tablet's pen is tilted, in degrees.
0 is when the pen is oriented towards the top of the tablet. Most common use is to divide it by 360 to obtain a 0 to 1 value.
Direction
The direction of the stroke in degrees.
0 is going towards the left of the document. Like the azimuth, you will most of the time want to divide it by 360. For example, to make a shape follow the direction of the stroke, divide direction by 360, plug it in the rotation parameter and set the brush rotation from 0 to 360.
Canvas PosX and Canvas PosY
Current position on the document, in pixels, from the top left corner.
Canvas PosX [0..1] and Canvas PosY [0..1]
Current position on the document, normalized, from the top left corner.
X returns 0 on the left of the document and 1 on the right, Y 0 at the top and 1 at the bottom.
View PosX and View PosY
Current position in Black Ink's drawing viewport, in pixels, from the top left corner.
View PosX [0..1] and View PosY [0..1]
Current position in Black Ink's drawing viewport, normalized, from the top left corner.