Blame Manuals/RepoReferences/en_US/Directories/trunk/Identity/Brushes.texinfo

b32b45
@subheading Goals
b32b45
b32b45
This section describes how brushes are organized in the repository and
b32b45
how to make them available for you to use in @acronym{GIMP,GNU Image
b32b45
Manipulation Program}.
b32b45
b32b45
@subheading Description
b32b45
b32b45
A brush is a pixmap or set of pixmaps used for painting through an
b32b45
image manipulation program like GIMP.  Inside the repository, we've
b32b45
organized brushes in @emph{common brushes} and @emph{theme-specific
b32b45
brushes}.  In both cases, brushes are initially created in @file{.xcf}
b32b45
format and later exported to any of the brush formats recognized by
b32b45
GIMP (e.g., @file{.gbr} or @file{.gih}) using the same name of its
b32b45
source file.
b32b45
b32b45
@verbatim
b32b45
1. Common brushes       2. Theme-specific brushes
b32b45
----------------------  -----------------------------------------------------------
b32b45
trunk/Identity/Brushes  trunk/Identity/Images/Themes/THEMENAME/THEMEVERSION/Brushes
b32b45
|-- Xcf                 |-- Xcf
b32b45
|   |-- 1.xcf           |   |-- 1.xcf
b32b45
|   |-- 2.xcf           |   |-- 2.xcf
b32b45
|   `-- 3.xcf           |   `-- 3.xcf
b32b45
|-- 1.gbr               |-- 1.gbr
b32b45
|-- 2.gih               |-- 2.gih
b32b45
`-- 3.gbr               `-- 3.gbr
b32b45
@end verbatim
b32b45
b32b45
In order for both common brushes and theme-specific brushes to be
b32b45
loaded by GIMP, related @file{.gbr} and @file{.gih} brush files need
b32b45
to be stored under @file{~/.gimp-2.2/brushes} directory. This location
b32b45
is out of CentOS Artwork Repository and provides no version control by
b32b45
itself. This way, brushes aren't exported to this location but into
b32b45
the repository directory structure which is versioned. Later, we
b32b45
create symbolic links in @file{~/.gimp-2.2/brushes} to connect file
b32b45
brushes inside the repository and, this way, provide the configuration
b32b45
needed by GIMP to use the brush files produced inside the repository.
b32b45
b32b45
@quotation
b32b45
@strong{Warning}
b32b45
When brushes are added to or removed from the repository, you need to
b32b45
update your working copy and all information related to brushes inside
b32b45
your workstation (e.g., brush links in @file{~/.gimp-2.2/brushes} and
b32b45
the Brushes panel in GIMP).  Otherwise, you may end up with broken
b32b45
links or brushes in the repository that wouldn't be available for you
b32b45
to use in GIMP.
b32b45
@end quotation
b32b45
b32b45
Inside the repository, common brushes and theme-specific brushes are
b32b45
created individually in different locations, but they all are linked
b32b45
from one unique location (i.e., @file{~/.gimp-2.2/brushes}).  This
b32b45
configuration may provoke brush overlapping if a name convenction is
b32b45
not implemented correctly.  In that sake, file names used for brushes
b32b45
inside the repository must be unique, no matter where they be.
b32b45
b32b45
As file name convenction inside the repository, brushes are named
b32b45
using lowercase letters, numbers, minus characters and dot characters,
b32b45
only.  Additionally, when links are built, we use one suffix for those
b32b45
brushes retrived from @file{trunk/Identity/Brushes} and another suffix
b32b45
for those brushes retrivided from theme-specific directories.  Using
b32b45
both the brush file name and the suffix information,  it is possible
b32b45
to build unique names for links under @file{~/.gimp-2.2/brushes}
b32b45
directory, scalably.
b32b45
b32b45
@verbatim
b32b45
trunk/Identity/Brushes
b32b45
|-- 1.gbr (file) <-- ~/.gimp-2.2/brushes/centos-1.gbr (link)
b32b45
|-- 2.gbr (file) <-- ~/.gimp-2.2/brushes/centos-2.gbr (link)
b32b45
`-- 3.gbr (file) <-- ~/.gimp-2.2/brushes/centos-3.gbr (link)
b32b45
@end verbatim
b32b45
b32b45
@verbatim
b32b45
trunk/Identity/Images/Themes/THEMENAME/THEMEVERSION/Brushes
b32b45
|-- 1.gbr (file) <-- ~/.gimp-2.2/brushes/centos-THEMENAME-THEMEVERSION-1.gbr (link)
b32b45
|-- 2.gbr (file) <-- ~/.gimp-2.2/brushes/centos-THEMENAME-THEMEVERSION-2.gbr (link)
b32b45
`-- 3.gbr (file) <-- ~/.gimp-2.2/brushes/centos-THEMENAME-THEMEVERSION-3.gbr (link)
b32b45
@end verbatim
b32b45
b32b45
Brushes produced with GIMP has a description field associated that is
b32b45
shown in the Brushes panel of GIMP.  This description is set when the
b32b45
brush is created as @file{.xcf} file and can be updated when it is
b32b45
exported either to @file{.gbr} or @file{.gih} format. It wouldn't be
b32b45
too useful to have two or more brushes using the same description so,
b32b45
we also make description of brush files unique, too. In that sake, we
b32b45
use the same name schema used to name brush links as description but
b32b45
without including the file extension (e.g., if we have the
b32b45
@file{centos-flame-3.gbr} brush, its description would be
b32b45
@code{centos-flame-3}).
b32b45
b32b45
@subheading Usage
b32b45
b32b45
The way you use brushes is up to your creativeness. However, the way
b32b45
brushes are made available needs to be standardized. That's the reason
b32b45
of organizing brushes in common brushes and theme-specific brushes.
b32b45
b32b45
@subheading Common brushes
b32b45
b32b45
Common brushes exist to organize brushes that can be used anywhere
b32b45
inside the repository. Inside the repository, common brushes under
b32b45
@file{trunk/Identity/Brushes} are mainly used to hold brand
b32b45
information related to The CentOS Project (e.g., symbols, logos,
b32b45
trademarks, etc.).
b32b45
b32b45
Common brushes are always made available under
b32b45
@file{~/.gimp-2.2/brushes} directory after preparing the repository
b32b45
(@pxref{Directories trunk Scripts Functions Prepare}).
b32b45
b32b45
@subheading Theme-specific brushes
b32b45
b32b45
Theme-specific brushes exist to organize brushes that can be used
b32b45
inside specific artistic motifs only. Inside the repository,
b32b45
theme-specific brushes are stored in a directory named @file{Brushes}
b32b45
which is stored in the first directory level under the artistic motif
b32b45
directory structure. Each artistic motif inside the repository has its
b32b45
own @file{Brushes} directory and uses it to store brushes that can be
b32b45
considered auxiliars to that artistic motif construction.
b32b45
b32b45
Theme-specific brushes aren't made available under
b32b45
@file{~/.gimp-2.2/brushes} directory after preparing the repository.
b32b45
In order to make theme-specific brushes available under
b32b45
@file{~/.gimp-2.2./brushes} it is required to activate/deactivate them
b32b45
using the @code{theme} functionality of @command{centos-art.sh}
b32b45
script. @c (@pxref{Directories trunk Scripts Functions Theme}).
b32b45
b32b45
@subheading See also
b32b45
b32b45
@itemize
b32b45
@item @url{file:///usr/share/gimp/2.0/help/en/index.html,The Gimp
b32b45
Manual}, specifically the section related to
b32b45
@url{file:///usr/share/gimp/2.0/help/en/gimp-concepts-brushes.html,
b32b45
Brushes}.
b32b45
@item @ref{Directories trunk Identity}
b32b45
@item @ref{Directories trunk}
b32b45
@end itemize