Blame Manuals/Filesystem/trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds.texi

6a10bd
@subsection Goals
6a10bd
6a10bd
This section exists to orgnize backgrounds of @emph{TreeFlower}
6a10bd
artistic motif.
6a10bd
6a10bd
@subsection Description
6a10bd
6a10bd
@subsubsection Desktop background
6a10bd
6a10bd
Once you have defined the vectorial artistic motif design, use the
6a10bd
@command{centos-art.sh} script (as described in usage section below)
6a10bd
to produce the png version of it. With the png version of your
6a10bd
vectorial design do the following:
6a10bd
6a10bd
Open the png version with GIMP.
6a10bd
6a10bd
Save the png version as a project of GIMP inside
6a10bd
@file{trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Xcf}
6a10bd
directory, using the same name of your vectorial design but with the
6a10bd
@samp{.xcf} extension.  
6a10bd
6a10bd
Now use GIMP to improve your design.  Here you may add one layer for
6a10bd
pattern, another for colors, and so on until you find yourself
6a10bd
confortable with your artwork. For example,  the following layer
6a10bd
distribution (from bottom to top) was used to build revision 285 of
6a10bd
file @file{1360x768.xcf} using @emph{TreeFlower} artistic motif at
6a10bd
revision 241.
6a10bd
6a10bd
@table @strong
6a10bd
@item Layer 1: Background 
6a10bd
6a10bd
The first thing we did with GIMP was to create a layer named
6a10bd
@samp{Background} to store the artistic motif (File > Open as layer).
6a10bd
This layer is the lowest layer in the image.  Later, we started to
6a10bd
create layers one upon another to change the artistic motif visual
6a10bd
style.
6a10bd
6a10bd
@item Layer 2: Shadow#1
6a10bd
6a10bd
This layer is above @samp{Background} and contains a linear gradient
6a10bd
from left (000000) to right (transparent) covering the whole image.
6a10bd
This layer masks the artistic motif to avoid the effect of linear
6a10bd
gradient. This layer is 100% of opacity.
6a10bd
6a10bd
@item Layer 3: Shadow#2
6a10bd
6a10bd
This layer is above @samp{Shadow#1} and contains a linear gradient
6a10bd
from left (000000) to right (transparent) covering just the 70% of the
6a10bd
whole image aproximatly. This layer doesn't mask the artistic motif
6a10bd
which make the left part of it fall into the dark of linear gradient.
6a10bd
This layer is 100% of opacity.
6a10bd
6a10bd
@item Layer 4: Pattern (Paper)
6a10bd
6a10bd
This layer is above @samp{Shadow#2} an contains the paper pattern
6a10bd
shipped with GIMP 2.2. This layer doesn't mask the artistic motif so
6a10bd
the pattern is applied over the whole image. This layer is set to 15%
6a10bd
of opacity.
6a10bd
6a10bd
@item Layer 5: Pattern (Stripes)
6a10bd
6a10bd
This layer is above @samp{Pattern (Paper)} and contains the stripes
6a10bd
used over the artistic motif. This layer do masks the artistic motif
6a10bd
so the stripes are only applied to it. This layer is set to 10% of
6a10bd
opacity.
6a10bd
6a10bd
@item Layer 6: Shadow#3
6a10bd
6a10bd
This layer is above @samp{Pattern (Stripes)} and contains a linear
6a10bd
gradient from right (6600ff) to left (transparent).  This layer masks
6a10bd
the artistic motif so the linear gradient doesn't affect it. This
6a10bd
layer is set to 15% of opacity.
6a10bd
6a10bd
@item Layer 7: Shadow#4
6a10bd
6a10bd
This layer is above @samp{Shadow#3} and contains a
6a10bd
linear gradient from left (000000) to right (transparent). This layer
6a10bd
do masks the artistic motif so the linear gradient doesn't affect it.
6a10bd
This layer is set to 10% of opacity.
6a10bd
6a10bd
@item Layer 8: Color#1
6a10bd
6a10bd
This layer is above @samp{Shadow#4} and is filled with orange (ffae00)
6a10bd
color over the whole image. This layer is set to 10% of opacity.
6a10bd
6a10bd
@item Layer 9: Color#2
6a10bd
6a10bd
This layer is above @samp{Color#1} and is filled with
6a10bd
blue (010a88) color over the whole image. This layer is set to 10% of
6a10bd
opacity.
6a10bd
6a10bd
@end table
6a10bd
6a10bd
@quotation
6a10bd
@strong{Note} There is no definite combination. To get the appropriate
6a10bd
visual design is a matter of constant testing and personal taste.
6a10bd
@end quotation
6a10bd
6a10bd
Finally, use @samp{Save as copy ...} option to export the final
6a10bd
design. To export the final design use the same name of your vectorial
6a10bd
design plus @samp{-final.png} extension. 
6a10bd
6a10bd
You can repeat these steps to create images for other screen
6a10bd
resolutions.
6a10bd
6a10bd
@subsubsection Anaconda Prompt (syslinux) background
6a10bd
6a10bd
When building syslinux backgrounds it is needed to take into account
6a10bd
that the final image is reduced to 16 colors. In desktop background
6a10bd
there is no color limitation but syslinux does have. The goal of this
6a10bd
section is achieving a final syslinux background as close as possible
6a10bd
to desktop backgrounds using 16 colors only.
6a10bd
6a10bd
Another point to consider is the forground and background definition
6a10bd
used by syslinux. The syslinux documentation says that the color set
6a10bd
in position 0 is the background and color set in position 7 is the
6a10bd
forground. The final palette of color used by our background will
6a10bd
match that specification. For great contrast we'll use black as
6a10bd
background and white as forground. At this poing we have black
6a10bd
(000000) and white (ffffff) colors in our syslinux palette, which left
6a10bd
us with 14 colors to play with. 
6a10bd
6a10bd
Let's begin with @file{Xcf/640x300.xcf} layer distribution from bottom
6a10bd
to top:
6a10bd
6a10bd
@table @strong
6a10bd
@item Layer 1: Background
6a10bd
6a10bd
This layer is the lowest layer in the image composition and contains
6a10bd
the artistic motif image rendered for the same resolution (i.e.,
6a10bd
@file{Img/Png/640x300.png}). This layer is set to 100% of opacity.
6a10bd
6a10bd
@item Layer 2: Pattern (Paper)
6a10bd
6a10bd
This layer is placed above @samp{Background} layer and contains the
6a10bd
paper pattern shipped with GIMP 2.2. This layer doesn't mask the
6a10bd
artistic motif. This layer is set to 30% of opacity.
6a10bd
6a10bd
@item Layer 3: Pattern (Stripes)
6a10bd
6a10bd
This layer is placed above @samp{Pattern (Paper)} layer and contains
6a10bd
the stripes pattern shipped with GIMP 2.2. This layer does mask the
6a10bd
artistic motif in order to apply the stripes over it only. The
6a10bd
background is not affected by the stripes pattern just the artistic
6a10bd
motif. This layer is set to 20% of opacity.
6a10bd
6a10bd
@item Layer 4: Shadow#1
6a10bd
6a10bd
This layer is placed above @samp{Pattern (Stripes)} layer and fills
6a10bd
the entire layer area with violet (6600ff) color. This layer do mask
6a10bd
the artistic motif in order to applied the violet color to the
6a10bd
background area outside the artistic motif only. This layer is set to
6a10bd
15% of opacity.
6a10bd
6a10bd
@item Layer 5: Color#1
6a10bd
6a10bd
This layer is above @samp{Shadow#1} and is filled with orange (ffae00)
6a10bd
color to cover the whole image. This layer is set to 10% of opacity.
6a10bd
6a10bd
@item Layer 6: Color#2
6a10bd
6a10bd
This layer is above @samp{Color#1} and is filled with blue (010a88)
6a10bd
color to cover the whole image. This layer is set to 10% of opacity.
6a10bd
6a10bd
@item Layer 7: Shadow#2
6a10bd
6a10bd
This layer is above @samp{Color#1} and contains a linear gradient from
6a10bd
left (000000) to right (transparent) covering 70% of the image
6a10bd
approximately. 
6a10bd
6a10bd
@end table
6a10bd
6a10bd
At this point we have the composition and should look like the desktop
6a10bd
backgrounds. Compared with desktop backgrounds there are some
6a10bd
differences in opacity. This is because in our testings the final
6a10bd
color information found with this composition produces an acceptable
6a10bd
16 color image. Of course this is something we haven't seen yet.
6a10bd
6a10bd
To define the color information of our current coposition, save the
6a10bd
syslinux background composition we've done using @samp{File > Save as
6a10bd
Copy ...} option in the following location:
6a10bd
6a10bd
@verbatim
6a10bd
trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Img/Png/640x300-final.png
6a10bd
@end verbatim
6a10bd
6a10bd
Now, create the final png version of syslinux backgrounds using the
6a10bd
following command:
6a10bd
6a10bd
@verbatim
6a10bd
centos-art render --entry=trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Prompt
6a10bd
@end verbatim
6a10bd
6a10bd
This command will create syslinux-splash final images for all major
6a10bd
releases of CentOS distribution the repository has been configured to.
6a10bd
The important files here are @file{syslinux-splash.png}, other
6a10bd
files may contain the wrong information because we haven't defined yet
6a10bd
the correct color information to use.
6a10bd
6a10bd
Open one @file{syslinux-splash.png} file with GIMP and use the
6a10bd
@samp{Image > Mode > Indexed} to reduce image colors up to 16 colors,
6a10bd
using the @samp{Generate optimum palette} feature of GIMP.  If the
6a10bd
image looks aceptable after reducing colors, use the @samp{Palettes}
6a10bd
menu (Ctrl+P) of GIMP to import a new palette from file and name it
6a10bd
@samp{CentOS-TreeFlower-Syslinux}. Once you've saved the palette, the
6a10bd
color information is stored at:
6a10bd
6a10bd
@verbatim
6a10bd
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
6a10bd
@end verbatim
6a10bd
6a10bd
You need to edit @file{CentOS-TreeFlower-Syslinux.gpl} file in order
6a10bd
to set the appropriate order of colors.  Remember black (000000) in
6a10bd
position 0, and white (ffffff) in position 7. Other positions are
6a10bd
irrelevant. When editing this file you may find that color reduction
6a10bd
did not set black and white colors to their respective values exactly.
6a10bd
Change that manually. For example, consider the following palette:
6a10bd
6a10bd
@verbatim
6a10bd
GIMP Palette
6a10bd
Name: CentOS-TreeFlower-Syslinux
6a10bd
Columns: 16
6a10bd
#
6a10bd
  0   0   0	Background (black)
6a10bd
 23  20  35	Untitled
6a10bd
 34  25  48	Untitled
6a10bd
 37  35  60	Untitled
6a10bd
 47  36  68	Untitled
6a10bd
 37  54  86	Untitled
6a10bd
 60  48  90	Untitled
6a10bd
255 255 255	Foreground (white)
6a10bd
 66  54  99	Untitled
6a10bd
 74  61  98	Untitled
6a10bd
 49  78 126	Untitled
6a10bd
 43  87 151	Untitled
6a10bd
 92  89  95	Untitled
6a10bd
 54 104 183	Untitled
6a10bd
158 153 156	Untitled
6a10bd
201 196 195	Untitled
6a10bd
@end verbatim
6a10bd
6a10bd
Update the @samp{Palettes} menu to get the new color positions from
6a10bd
the file you just edited and open the palette with double click. 
6a10bd
6a10bd
Update the @file{syslinux.gpl} file copying the following file:
6a10bd
6a10bd
@verbatim
6a10bd
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
6a10bd
@end verbatim
6a10bd
6a10bd
to
6a10bd
6a10bd
@verbatim
6a10bd
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.gpl
6a10bd
@end verbatim
6a10bd
6a10bd
With the @samp{CentOS-TreeFlower-Syslinux} palette opened in the
6a10bd
@samp{Palette Editor}, open (Ctrl+O) the following file:
6a10bd
6a10bd
@verbatim
6a10bd
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.ppm
6a10bd
@end verbatim
6a10bd
6a10bd
and replace its color information with that one in
6a10bd
@samp{CentOS-TreeFlower-Syslinux} palette.  When you are replacing
6a10bd
color information inside @file{syslilnux.ppm}, remember to keep the
6a10bd
order of colors just as they are in the
6a10bd
@samp{CentOS-TreeFlower-Palette} palette.  
6a10bd
6a10bd
The @file{syslinux.ppm} file is 16 pixels width and 1 pixel height, so
6a10bd
you probably need to zoom it a bit to set the color information in
6a10bd
their place when using the pen tool with the brush @samp{Circle (01)
6a10bd
(1 x 1)}.
6a10bd
6a10bd
Once you've updated the @samp{syslinux.ppm} file, it is time to update
6a10bd
the following file:
6a10bd
6a10bd
@verbatim
6a10bd
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.hex
6a10bd
@end verbatim
6a10bd
6a10bd
The @file{syslinux.hex} file contains the color information in
6a10bd
hexadecimal notation.  The color information in hexadecimal notation
6a10bd
is required by @command{ppmtolss16} command.  The @command{ppmtolss16}
6a10bd
command produces the final LSS16 image format that is used by syslinux
6a10bd
program inside CentOS distribution.
6a10bd
6a10bd
The color information inside @file{syslinux.hex} must match the one in
6a10bd
@file{syslinux.ppm} and @file{syslinux.gpl}. For example, based on
6a10bd
@file{CentOS-TreeFlower-Syslinux} palette of colors above, consider
6a10bd
the following @file{syslinux.hex} file:
6a10bd
6a10bd
@verbatim
6a10bd
#000000=0
6a10bd
#171423=1
6a10bd
#221930=2
6a10bd
#25233c=3
6a10bd
#2f2444=4
6a10bd
#253656=5
6a10bd
#3c305a=6
6a10bd
#ffffff=7
6a10bd
#423663=8
6a10bd
#4a3d62=9
6a10bd
#314e7e=10
6a10bd
#2b5797=11
6a10bd
#5c595f=12
6a10bd
#3668b7=13
6a10bd
#9e999c=14
6a10bd
#c9c4c3=15
6a10bd
@end verbatim
6a10bd
6a10bd
@subsubsection Grub background
6a10bd
6a10bd
@subsection Usage
6a10bd
6a10bd
@itemize
6a10bd
@item ...
6a10bd
@end itemize
6a10bd
6a10bd
@subsection See also
6a10bd
6a10bd
@menu
6a10bd
@end menu