This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level.

16.74 - Stroke

Quick Reference to Scripting Command
a=STAPP(ABS,HUE,SMOOTHING)
a=STBARREL(pour,reseed,norep,reverse,zero,random,seed)
a=STFADE(MODE[0-4])
a=STFLIP(seed,RESEED,HMETHOD[0-2],VMETHOD[0-2])
a=STPAL(SMOOTH,WRAP)
a=STPOS(spacing,roughness,seed,RESEED,GHOSTWRITE)
a=STROTATE(rot1,rot2,seed,RESEED,METHOD[0-5])
a=STSHADOW(ON,level,soft,xo,yo)
a=STSIZING(size1,size2,seed,RESEED,METHOD[0-4])

a=STROKE()
Items in CAPS are 0/1 or ranges with more options than just 0/1.
Ranges other than 0/1 are indicated by brackets, such as [0-2].


Red Ant Barrel in "Follow" Rotation Mode

This is the Image Barrel the above image was made from. Sizing set to .5 absolute, roughness set to 22, spacing set to 44, Rotation set to Follow. Barrel set to Pour, Random, NoRep. Random Horizontal flipping.

Stroke Operation Dialog

The Stroke Operator is a powerful drawing tool that can perform many of the common operations you might want in a painting system. Many of the operations are unique in how they handle brushes; It is sure to be worth your time to experiment (no, play!) with the options in this operator!

 Tip:

See also: Image Barrels

On the page we refer you to here, we show a number of examples of how the Stroke operator can be used with image barrels. Plus, everything there applies to single images as well, so it's a good page to check out.

This operator can use Pixel Transfer Modes to generate output image and layer data. These modes add a great deal of flexibility to what you can do with this operator. Only operators that create new image or layer data use pixel transfer modes. Also, plugins may use them if the plugin designer takes care to use the plugin masked write services.

16.74.1 - Stroke Controls

16.74.1.1 - Pour (Image Barrel)

If the selected brush is a layer from a currenly layered image, then this selection will allow you to "pour out" each image in turn from each layer in the image, or pour them out randomly, along the path of your brushstrokes.

16.74.1.2 - Zero (Image Barrel)

This forces the first image out to be the first image in the barrel for each brushstroke taken.

16.74.1.3 - Random (Image Barrel)

This causes the images to be poured out in random order.

16.74.1.4 - NoRep (Image Barrel)

When Random is checked, this ensures that in an image with more than two layers, the images will never repeat immediately - there will be at least one image that is not the previous image before the previous image appears again.

16.74.1.5 - Reseed (Image Barrel)

This causes the brushstroke random order to be re-seeded on each brush stroke, resulting in the same (pseudo-random) order of barrel images being drawn.

16.74.1.6 - Reverse (Image Barrel)

This causes the barrel contents to be produced in reverse order, if Random is off.

16.74.1.7 - Seed (Image Barrel)

This is the seed for the random number system that controls the pattern that the barrel contents are dealt out with. If you change this number, you change the order of the pour, even if re-seed is on.

16.74.1.8 - Level (Shadow)

If shadowing is on, this controls how dark the shadow is.

16.74.1.9 - On (Shadow)

This turns shadowing on and off.

16.74.1.10 - Soft (Shadow)

This controls how soft the shadow is. Higher values create softer shadows, but take longer to generate.

16.74.1.11 - Xo (Shadow)

X offset for the shadow placement.

16.74.1.12 - Yo (Shadow)

Y offset for the shadow placement.

16.74.1.13 - Brush

This is the image that will be used as the brush for the brustroke. If the image selected is a layer from a currently layered image, then the Barrel options elsewhere in the dialog will become available.

16.74.1.14 - Load Brush

This allows you to load a brush image from the computer's filesystem.

16.74.1.15 - Mode

This is the drawmode for the brushstroke. Matte means, use the brush colors and replace the iamge colors with them. Add means add the brush colors to the image colors. Palette means use the colors from the palette instead of the brush colors.

16.74.1.16 - No Fade (Fading)

The brush is always painted at full density.

16.74.1.17 - Fade Out (Fading)

The brush is initially painted at full density, but fades out to zero density by the end of the brushstroke.

16.74.1.18 - Fade In (Fading)

The brush is initially painted at zero density, but fades in to full density by the end of the brushstroke.

16.74.1.19 - Fade Peak (Fading)

The brush is initially painted at zero density, but fades in to full density by the middle of the brushstroke and then fades out again to zero density by the end of the brushstroke.

16.74.1.20 - Fade Valley (Fading)

The brush is initially painted at full density, but fades out to zero density by the middle of the brushstroke and then fades in again to full density by the end of the brushstroke.

The following image demonstrates all five fade modes:


None, Out, In, Peak, Valley

16.74.1.21 - Edit (Palette)

This allows you to edit the palette used in the Palette drawing mode.

16.74.1.22 - Smooth(Palette)

If the drawmode is Palette, then this causes the colors in the palette to be interpolated for a smooth, creamy look.

16.74.1.23 - Wrap (Palette)

This means that when the last color in the palette is used, the drawing begins again with the first color in the palette. When this operator is dragged into the timeline, palettes will automatically trend to the next palette, if another exists in the timeline.

16.74.1.24 - Abs. Trans (Application Mode)

This affects how transparency in the brush is computed. When unchecked, the brush density adds each time any part of a brush covers a pixel. When checked, the brush density only reaches the density of the maximally dense portion of the brush that was positioned over a pixel at any one time during a brush stroke.

16.74.1.25 - Hue Lock (Application Mode)

This forces the color added to reach a maximum of the brush color without changing hue. If increasing the brush density in any channel would change the hue of the result, the brush is no longer applied.

16.74.1.26 - Smoothing (Application Mode)

This affects how the transparency is mapped; it is filtered when this is on.

16.74.1.27 - Spacing (Positioning)

This controls how far along the path the stroke must proceed before another brush image is placed on the path.

16.74.1.28 - Guess (Positioning)

This fills in the Spacing parameter with a guess a brush spacing that will allow brushes to land far enough apart that they will not write over each other.

16.74.1.29 - Ghostwrite (Positioning, Timeline)

When the Stroke operator is used in the timeline, this tells Stroke to only trace the part of the brush path that is percentage-wise equal to the amount of the timeline that has been executed. This results in the path you drew appearing from 0 to 100% over 0 to 100% of the timeline frames.

16.74.1.30 - Roughness (Positioning)

This allows you to specify that brush placement is not precisely on the line you drew, but may deviate by the amount you enter here. Affected by the Seed and Reseed controls in the Positioning subgroup.

16.74.1.31 - Seed (Positioning)

This controls what pattern the roughness takes. Changing this value will change the pattern of the roughness even if Reseed is on.

16.74.1.32 - Reseed (Positioning)

This causes the roughness generator to restart with each brushstroke.

16.74.1.33 - Size1 (Sizing)

This size is one of the two sizes used for sizing computation modes that need two sizes. See below.

16.74.1.34 - Size2 (Sizing)

This size is one of the two sizes used for sizing computation modes that need two sizes. See below.

16.74.1.35 - Seed (Sizing)

This controls what pattern the sizing takes. Changing this value will change the pattern of the sizing even if Reseed is on.

16.74.1.36 - Reseed (Sizing)

This causes the Sizing pattern to be restarted with each brushstroke.

16.74.1.37 - None (Sizing, Method)

Sizing is off.

16.74.1.38 - Absolute (Sizing, Method)

This causes the brush placements to be sized to Size1.

16.74.1.39 - Grow (Sizing, Method)

This causes the brush placements to run from the larger of the two sizes to the smaller of the two sizes over the course of the brushstroke. The order the sizes are entered in does not matter.

16.74.1.40 - Shrink (Sizing, Method)

This causes the brush placements to run from the smaller of the two sizes to the larger of the two sizes over the course of the brushstroke. The order the sizes are entered in does not matter.

16.74.1.41 - Random (Sizing, Method)

This causes the brush to be placed in a random size that will vary between Size1 and Size2.

 Tip:

Because the Stroke operator can rotate the brushes, it is most useful if you, when creating image barrels and single brushes, do not do so your self. Best results are obtained when your images are oriented naturally - that is, with the top of the object in the image towards the top of the image itself. This is true in the general case, but especially important when dealing with the Follow rotation mode, which simply will not work as intended if you have non up-oriented drawings in your brushes.

16.74.1.42 - Rot1 (Rotation)

This rotation value is one of the two values used for rotation computation modes that need two values. May usefully vary from -180.0 to 180.0 See below.

16.74.1.43 - Rot2 (Rotation)

This rotation value is one of the two values used for rotation computation modes that need two values. May usefully vary from -180.0 to 180.0, but can be any rotation amount. See below.

16.74.1.44 - Seed (Rotation)

This controls what pattern the rotation takes. Changing this value will change the pattern of the rotations even if Reseed is on.

16.74.1.45 - Reseed (Rotation)

This causes the rotation pattern generator to restart with each brushstroke.

16.74.1.46 - None (Rotation, Method)

The brush placements are not rotated.

16.74.1.47 - Absolute (Rotation, Method)

Rotates the brush to the value set in Rot1.

16.74.1.48 - Follow (Rotation, Method)

Follow causes the brush to rotate so that the top of the brush image is oriented in the direction of the brushstroke.

16.74.1.49 - CW (Rotation, Method)

The brush is rotated from the larger of the Rot1 and Rot2 values, to the smaller.

16.74.1.50 - CCW (Rotation, Method)

The brush is rotated from the smaller of the Rot1 and Rot2 values, to the larger.

16.74.1.51 - Random (Rotation, Method)

The brush is rotated to a position from Rot1 to Rot2.

16.74.1.52 - Seed (Flipping)

This controls what pattern the flipping takes. Changing this value will change the pattern of the flipping even if Reseed is on.

16.74.1.53 - Reseed (Flipping)

This causes the flipping pattern generator to restart with each brushstroke.

16.74.1.54 - None, Horizontal (Flipping, Modes)

The brush will not be flipped horizontally.

16.74.1.55 - H (Flipping, Modes)

The brush will be flipped horizontally.

16.74.1.56 - RH (Flipping, Modes)

The brush will be flipped horizontally in a random manner.

16.74.1.57 - None, Vertical (Flipping, Modes)

The brush will not be flipped vertically.

16.74.1.58 - V (Flipping, Modes)

The brush will be flipped vertically.

16.74.1.59 - RV (Flipping, Modes)

The brush will be flipped vertically in a random manner.

Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
WinImages F/x, Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions
WinImages F/x Manual Version 7, Revision 6, Level A

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 156