A few more lines about the pipe parameters parasite. Related change to
the psp plug-in.
This commit is contained in:
parent
7c4471b764
commit
191eaa7036
2 changed files with 17 additions and 12 deletions
|
|
@ -54,7 +54,7 @@ gimp-brush-pipe-parameters" (IMAGE, PERSISTENT)
|
|||
The keywords are:
|
||||
ncells: the number of brushes in the brush pipe
|
||||
step: the default spacing for the pipe
|
||||
dim: the dimension of the hose. the number of cells
|
||||
dim: the dimension of the pipe. The number of cells
|
||||
in the pipe should be equal to the product
|
||||
of the ranks of each dimension.
|
||||
cols: number of columns in each layer of the image,
|
||||
|
|
@ -63,12 +63,18 @@ gimp-brush-pipe-parameters" (IMAGE, PERSISTENT)
|
|||
not necessarily are identical to the ranks of the
|
||||
dimensions of a pipe, but in the case of two-
|
||||
and three-dimensional pipes, it probably is.
|
||||
rank0, rank1: (one for each dimension): the index range
|
||||
rank0, rank1, ...: (one for each dimension): the index range
|
||||
for that dimension
|
||||
These are even more vague so far:
|
||||
placement: "default", "constant", "random"
|
||||
selection: "default", "random", "incremental", "angular",
|
||||
"pressure", "velocity"
|
||||
spacing: "default", "constant" or "random". "constant" means
|
||||
use the spacing in the first brush in the pipe.
|
||||
"random" means perturb that with some suitable
|
||||
random number function. (Hmm, would it be overdoing it
|
||||
if the pipe also could specify what random function
|
||||
and its parameters...?)
|
||||
sel0, sel1, ...: "default", "random", "incremental", "angular",
|
||||
"pressure", "velocity", and whatever else suitable we might
|
||||
think of ;-) How one index from each dimension is
|
||||
selected (until we have pinpointed the brush to use).
|
||||
|
||||
"tiff-save-options" (IMAGE)
|
||||
The TiffSaveVals structure from the TIFF plugin.
|
||||
|
|
|
|||
|
|
@ -1493,16 +1493,15 @@ read_tube_block (FILE *f,
|
|||
gimp_image_add_hguide (image_ID, (ia->height * i)/row_count);
|
||||
|
||||
/* We use a parasite to pass in the tube (pipe) parameters in
|
||||
* case we will have any use of those (for instance in some
|
||||
* yet to be written code that saves a GIMP image pipe format
|
||||
* file.
|
||||
* case we will have any use of those, for instance in the gpb
|
||||
* plug-in that saves a GIMP image pipe.
|
||||
*/
|
||||
parasite_text =
|
||||
g_strdup_printf ("ncells:%d step:%d dim:%d cols:%d rows:%d "
|
||||
"rank0:%d rank1:%d "
|
||||
"placement:%s selection:%s",
|
||||
"rank0:%d "
|
||||
"spacing:%s sel0:%s",
|
||||
cell_count, step_size, 1, column_count, row_count,
|
||||
column_count, row_count,
|
||||
cell_count,
|
||||
(placement_mode == tpmRandom ? "random" :
|
||||
(placement_mode == tpmConstant ? "constant" :
|
||||
"default")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue