	Alf's Filter Factory Power Toys

The Filter Factory is a plugin for Photoshop 3.0 that allows you to create 
filters and compile them as a separate file. Here are some examples of 
these filters, complete with source, compiled filters and examples of 
their use. The compiled files are for Windows. There will be a macintosh
version soon. 

The zip file contains:
alfilter.txt - this file;
*.afs - source files for the Filter Factory plugin. Use the Load... command.
If you want to compile the filters yourself, suggestions of the control's
names are given for each filter.
*.8bf - compiled filters for Windows. These must be placed in the plugins
directory of Photoshop.

Legal stuff

These filters are FREE. No warranties are given. They were written to 
stimulate discussion and sharing of information on Adobe Photoshop. If you 
find these filters useful and learn from them, a small contribution of
5-10 dollars is appreciated, as it would help to keep and expand my homepage.
Do not modify this files. Do not post them separated or without this text
file. 
Now to the good stuff:

Channel Gradient:
(chgrad.afs;chgrad.8bf)

This filter creates a gradient of colors in several directions, depending 
on how you set the controls.

The Source
R: z-(((ctl(0)-127)*X/128)*x/X)+(((ctl(1)-127)*X/128)*y/Y)
G: z-(((ctl(2)-127)*X/128)*x/X)+(((ctl(3)-127)*X/128)*y/Y)
B: z-(((ctl(4)-127)*X/128)*x/X)+(((ctl(5)-127)*X/128)*y/Y)

ctl(0)= Red Horizontal;   ctl(1)= Red Vertical
ctl(2)= Green Horizontal; ctl(3)= Green Vertical
ctl(4)= Blue Horizontal;  ctl(5)= Blue Vertical

Channel Offset
(chgrad.afs;chgrad.8bf)

This filter offsets each of the channels in both Horizontal and Vertical
directions.

The Source
R: src(x+((ctl(0)-127)*X/128),y+((ctl(3)-127)*Y/128),0)
G: src(x+((ctl(1)-127)*X/128),y+((ctl(4)-127)*Y/128),1)
B: src(x+((ctl(2)-127)*X/128),y+((ctl(5)-127)*Y/128),2)

ctl(0)= Red Horizontal;   ctl(1)= Green Vertical
ctl(2)= Blue Horizontal;  ctl(3)= Red Vertical
ctl(4)= Green Horizontal; ctl(5)= Blue Vertical


Channel Spin:
(chspin.afs;chspin.8bf)

This filter rotates each of the channels in clockwise and counterclockwise
directions. It also allows you to apply a spherical distortion.

The Source
R: rad(d+(4*(ctl(0)-127)*X/128),m+((ctl(3)-127)*Y/256),0)
G: rad(d+(4*(ctl(1)-127)*X/128),m+((ctl(4)-127)*Y/256),1)
B: rad(d+(4*(ctl(2)-127)*X/128),m+((ctl(5)-127)*Y/256),2)

ctl(0)= Red Spin;   ctl(1)= Green Spin
ctl(2)= Blue Spin;  ctl(3)= Red Distorion
ctl(4)= Green Distortion;  ctl(5)= Blue Distortion

ColorAbs:
(colorabs.afs;colorabs.8bf)

A weird shift in the picture pallete results from applying this filter.

ctl(0)= Red; ctl(1)= Green; ctl(2)= Blue

Color Grid:
(colgrid.afs;colgrid.8bf)

This is probably one of the most useful, on a everyday basis, of my 
filters. It creates a grid of evenly spaced lines on top of the picture.
You can assign the number of divisions on both horizontal and vertical 
directions. You can also assign the color of the lines using the RGB
number. If the picture is dark you can use white lines.
I good way to use this filter is to open a new layer, filled with white,
and apply the filter. Select the white with the magic wand, use 
Select-Similar to select all white and press the delete key. Now you
have a transparent layer with your colores grid on in, and you can turn
it on and off at will...

ctl(0)= Horizontal Divisions; ctl(1)= Vertical Divisions
ctl(3)= Red; ctl(4)= Green; ctl(5)= Blue

Difference Noise:
(difnoise.*)

A different kind of noise. 

ctl(0)= Noise Intensity

Hue Emboss:
(huemboss.*)

This filter should have been called Hue Protected Emboss, since it 
gives you the embossed look without turning your picture into a grayish
mixture of everything. This filter uses the same kind of math used in
the Custom filter. You can select the direction of the embossing and
its intensity. The directions are labeled like in a compass, where N is
North, NW is northwest, etc.:                    
			N
		      NW NE
		     W     E
		      SW SE
			S
ctl(0)= Offset;
ctl(1)= NW-SE; ctl(2)= N-S; ctl(3)= NE-SW; ctl(4)= E-W

Mirror Offset:
(mirroff.*)

This is one of my favorites. Use it to create weird textures and
patterns. It applies a mirror, either horizontal or vertical to the
picture. The mirror can be moved in both directions. Apply it
with 128, 128 to get a mirrored image of the firt quadrant of the 
image. Use together with the Offset filter to get different effects. 
Lots of fun.

Noizz:
(noizz.*)

The Noizz filter creates an "explosion" of noise, radially coming from the
center of the picture. It reminds me of the Pixel Storm(tm) filter
from the KPT collection (Metatools Inc.).

ctl(0)= Noizz

Split Distortion:
(splitdis.*)

This filter applies a spherical mirror kind of distortion.

ctl(0)= Split Distortion

SubNoise:
(subnoise.*)

Another kind of noise. 

ctl(0)= Noise Intensity

Alfredo Mateus, Chemistry Dept., University of Florida

More info and updates, check my homepage Photoshop Sites:
http://www.fns.net/~almateus/photos.htm
Send coments to almateus@grove.ufl.edu
Send contributions to:
Alfredo Mateus
320 UVS #8
Gainesville, FL - 32603
USA
