Blame Manuals/en/Html/Repository/repository_38.html

4c79b5
4c79b5
<html>
09d4f2
09d4f2
09d4f2
The CentOS Artwork Repository exists to organize and automate The
09d4f2
CentOS Project corporate visual identity (, to
09d4f2
start on).
4c79b5
6c4982
Copyright C 2009, 2010 Alain Reguera Delgado. All rights
4c79b5
reserved.
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
008ee0
4c79b5
4c79b5
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
4c79b5
            Karl Berry  <karl@freefriends.org>
4c79b5
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
4c79b5
            and many others.
4c79b5
Maintained by: Many creative people <dev@texi2html.cvshome.org>
4c79b5
Send bugs and suggestions to <users@texi2html.cvshome.org>
4c79b5
4c79b5
-->
4c79b5
<head>
008ee0
<title>CentOS Artwork Repository: 3.35 trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds</title>
4c79b5
008ee0
<meta name="description" content="CentOS Artwork Repository: 3.35 trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds">
008ee0
<meta name="keywords" content="CentOS Artwork Repository: 3.35 trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds">
4c79b5
<meta name="resource-type" content="document">
4c79b5
<meta name="distribution" content="global">
4c79b5
<meta name="Generator" content="texi2html 1.76">
4c79b5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4c79b5
<style type="text/css">
4c79b5
1e9202
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
4c79b5
4c79b5
a.summary-letter {text-decoration: none}
4c79b5
pre.display {font-family: serif}
4c79b5
pre.format {font-family: serif}
4c79b5
pre.menu-comment {font-family: serif}
4c79b5
pre.menu-preformatted {font-family: serif}
4c79b5
pre.smalldisplay {font-family: serif; font-size: smaller}
4c79b5
pre.smallexample {font-size: smaller}
4c79b5
pre.smallformat {font-family: serif; font-size: smaller}
4c79b5
pre.smalllisp {font-size: smaller}
4c79b5
span.sansserif {font-family:sans-serif; font-weight:normal;}
4c79b5
ul.toc {list-style: none}
4c79b5
-->
4c79b5
</style>
4c79b5
4c79b5
4c79b5
</head>
4c79b5
4c79b5
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
4c79b5
4c79b5
008ee0
[ < ]
008ee0
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
008ee0
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
008ee0
[Index]
4c79b5
[ ? ]
4c79b5
008ee0
008ee0
008ee0

3.35 trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds

5fb024
5fb024
008ee0
5fb024

3.35.1 Goals

5fb024
008ee0

This section exists to orgnize TreeFlower's backgrounds.

6c4982

5fb024
008ee0
5fb024

3.35.2 Description

5fb024
6c4982
008ee0
008ee0

3.35.2.1 Desktop background

be6bef
008ee0

Once you have defined the vectorial artistic motif design, use the

008ee0
centos-art.sh script (as described in usage section below)
008ee0
to produce the png version of it. With the png version of your
008ee0
vectorial design do the following:
97552b

008ee0

Open the png version with GIMP.

97552b

008ee0

Save the png version as gimp's project inside

008ee0
<tt>`trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Xcf'</tt>
008ee0
directory, using the same name of your vectorial design but with the
008ee0
<samp>`.xcf'</samp> extension.  
97552b

008ee0

Now use GIMP to improve your design. Here you may add one layer for

008ee0
pattern, another for colors, and so on until you find yourself
008ee0
confortable with your artwork. For example,  the following layer
008ee0
distribution (from bottom to top) was used to build revision 285 of
008ee0
file <tt>`1360x768.xcf'</tt> using TreeFlower's artistic motif at revision
008ee0
241.
97552b

008ee0
008ee0
Layer 1: Background
008ee0
008ee0

The first thing we did with GIMP was to create a layer named

008ee0
<samp>`Background'</samp> to store the artistic motif (File > Open as layer).
008ee0
This layer is the lowest layer in the image.  Later, we started to
008ee0
create layers one upon another to change the artistic motif visual
008ee0
style.
2bb528

008ee0
008ee0
Layer 2: Shadow#1
008ee0
008ee0

This layer is above <samp>`Background'</samp> and contains a linear gradient

008ee0
from left (000000) to right (transparent) covering the whole image.
008ee0
This layer masks the artistic motif to avoid the effect of linear
008ee0
gradient. This layer is 100% of opacity.
06048d

008ee0
008ee0
Layer 3: Shadow#2
008ee0
008ee0

This layer is above <samp>`Shadow#1'</samp> and contains a linear gradient

008ee0
from left (000000) to right (transparent) covering just the 70% of the
008ee0
whole image aproximatly. This layer doesn't mask the artistic motif
008ee0
which make the left part of it fall into the dark of linear gradient.
008ee0
This layer is 100% of opacity.
06048d

008ee0
008ee0
Layer 4: Pattern (Paper)
008ee0
008ee0

This layer is above <samp>`Shadow#2'</samp> an contains the paper pattern

008ee0
shipped with GIMP 2.2. This layer doesn't mask the artistic motif so
008ee0
the pattern is applied over the whole image. This layer is set to 15%
008ee0
of opacity.
06048d

008ee0
008ee0
Layer 5: Pattern (Stripes)
008ee0
008ee0

This layer is above <samp>`Pattern (Paper)'</samp> and contains the stripes

008ee0
used over the artistic motif. This layer do masks the artistic motif
008ee0
so the stripes are only applied to it. This layer is set to 10% of
008ee0
opacity.
06717d

008ee0
008ee0
Layer 6: Shadow#3
008ee0
008ee0

This layer is above <samp>`Pattern (Stripes)'</samp> and contains a linear

008ee0
gradient from right (6600ff) to left (transparent).  This layer masks
008ee0
the artistic motif so the linear gradient doesn't affect it. This
008ee0
layer is set to 15% of opacity.
be6bef

008ee0
008ee0
Layer 7: Shadow#4
008ee0
008ee0

This layer is above <samp>`Shadow#3'</samp> and contains a

008ee0
linear gradient from left (000000) to right (transparent). This layer
008ee0
do masks the artistic motif so the linear gradient doesn't affect it.
008ee0
This layer is set to 10% of opacity.
be6bef

008ee0
008ee0
Layer 8: Color#1
008ee0
008ee0

This layer is above <samp>`Shadow#4'</samp> and is filled with orange (ffae00)

008ee0
color over the whole image. This layer is set to 10% of opacity.
2bb528

008ee0
008ee0
Layer 9: Color#2
008ee0
008ee0

This layer is above <samp>`Color#1'</samp> and is filled with

008ee0
blue (010a88) color over the whole image. This layer is set to 10% of
008ee0
opacity.
2bb528

2bb528
be6bef
be6bef
008ee0
info

Note

There is no definite combination. To get the appropriate

008ee0
visual design is a matter of constant testing and personal taste.
008ee0

be6bef
008ee0

Finally, use the GIMP's <samp>`Save as copy ...'</samp> option to export the

008ee0
final design. To export the final design use the same name of your
008ee0
vectorial design plus <samp>`-final.png'</samp> extension. 
41f1ec

008ee0

You can repeat these steps to create images for other screen

008ee0
resolutions.
41f1ec

be6bef
008ee0
008ee0

3.35.2.2 Anaconda Prompt (syslinux) background

008ee0
008ee0

When building syslinux backgrounds it is needed to take into account

008ee0
that the final image is reduced to 16 colors. In desktop background
008ee0
there is no color limitation but syslinux does have. The goal of this
008ee0
section is achieving a final syslinux background as close as possible
008ee0
to desktop backgrounds using 16 colors only.
008ee0

008ee0

Another point to consider is the forground and background definition

008ee0
used by syslinux. The syslinux documentation says that the color set
008ee0
in position 0 is the background and color set in position 7 is the
008ee0
forground. The final palette of color used by our background will
008ee0
match that specification. For great contrast we'll use black as
008ee0
background and white as forground. At this poing we have black
008ee0
(000000) and white (ffffff) colors in our syslinux palette, which left
008ee0
us with 14 colors to play with. 
008ee0

008ee0

Let's begin with <tt>`Xcf/640x300.xcf'</tt> layer distribution from bottom

008ee0
to top:
2bb528

008ee0
008ee0
Layer 1: Background
008ee0
008ee0

This layer is the lowest layer in the image composition and contains

008ee0
the artistic motif image rendered for the same resolution (i.e.,
008ee0
<tt>`Img/Png/640x300.png'</tt>). This layer is set to 100% of opacity.
2bb528

008ee0
008ee0
Layer 2: Pattern (Paper)
008ee0
008ee0

This layer is placed above <samp>`Background'</samp> layer and contains the

008ee0
paper pattern shipped with GIMP 2.2. This layer doesn't mask the
008ee0
artistic motif. This layer is set to 30% of opacity.
2bb528

008ee0
008ee0
Layer 3: Pattern (Stripes)
008ee0
008ee0

This layer is placed above <samp>`Pattern (Paper)'</samp> layer and contains

008ee0
the stripes pattern shipped with GIMP 2.2. This layer does mask the
008ee0
artistic motif in order to apply the stripes over it only. The
008ee0
background is not affected by the stripes pattern just the artistic
008ee0
motif. This layer is set to 20% of opacity.
2bb528

008ee0
008ee0
Layer 4: Shadow#1
008ee0
008ee0

This layer is placed above <samp>`Pattern (Stripes)'</samp> layer and fills

008ee0
the entire layer area with violet (6600ff) color. This layer do mask
008ee0
the artistic motif in order to applied the violet color to the
008ee0
background area outside the artistic motif only. This layer is set to
008ee0
15% of opacity.
41f1ec

008ee0
008ee0
Layer 5: Color#1
008ee0
008ee0

This layer is above <samp>`Shadow#1'</samp> and is filled with orange (ffae00)

008ee0
color to cover the whole image. This layer is set to 10% of opacity.
2bb528

008ee0
008ee0
Layer 6: Color#2
008ee0
008ee0

This layer is above <samp>`Color#1'</samp> and is filled with blue (010a88)

008ee0
color to cover the whole image. This layer is set to 10% of opacity.
41f1ec

008ee0
008ee0
Layer 7: Shadow#2
008ee0
008ee0

This layer is above <samp>`Color#1'</samp> and contains a linear gradient from

008ee0
left (000000) to right (transparent) covering 70% of the image
008ee0
approximately. 
41f1ec

008ee0
41f1ec
41f1ec
008ee0

At this point we have the composition and should look like the desktop

008ee0
backgrounds. Compared with desktop backgrounds there are some
008ee0
differences in opacity. This is because in our testings the final
008ee0
color information found with this composition produces an acceptable
008ee0
16 color image. Of course this is something we haven't seen yet.
915635

008ee0

To define the color information of our current coposition, save the

008ee0
syslinux GIMP's background composition we've done using GIMP's
008ee0
<samp>`File > Save as Copy ...'</samp> option in the following location:
915635

008ee0
trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Img/Png/640x300-final.png
915635
008ee0

Now, create the final png version of syslinux backgrounds using the

008ee0
following command:
915635

008ee0
centos-art render --entry=trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Prompt
915635
008ee0

This command will create syslinux-splash final images for all major

008ee0
releases of CentOS distribution the repository has been configured to.
008ee0
The important files here are <tt>`syslinux-splash.png'</tt>, other
008ee0
files may contain the wrong information because we haven't defined yet
008ee0
the correct color information to use.
008ee0

008ee0

Open one <tt>`syslinux-splash.png'</tt> file with GIMP and use the

008ee0
<samp>`Image > Mode > Indexed'</samp> to reduce image colors up to 16 colors,
008ee0
using GIMP's <samp>`Generate optimum palette'</samp> feature.  If the image
008ee0
looks aceptable after reducing colors, use GIMP's <samp>`Palettes'</samp> menu
008ee0
(Ctrl+P) to import a new palette from file and name it
008ee0
<samp>`CentOS-TreeFlower-Syslinux'</samp>. Once you've saved the palette, the
008ee0
color information is stored at:
008ee0

008ee0
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
915635
008ee0

You need to edit <tt>`CentOS-TreeFlower-Syslinux.gpl'</tt> file in order

008ee0
to set the appropriate order of colors.  Remember black (000000) in
008ee0
position 0, and white (ffffff) in position 7. Other positions are
008ee0
irrelevant. When editing this file you may find that color reduction
008ee0
did not set black and white colors to their respective values exactly.
008ee0
Change that manually. For example, consider the following palette:
008ee0

008ee0
GIMP Palette
008ee0
Name: CentOS-TreeFlower-Syslinux
008ee0
Columns: 16
008ee0
#
008ee0
  0   0   0	Background (black)
008ee0
 23  20  35	Untitled
008ee0
 34  25  48	Untitled
008ee0
 37  35  60	Untitled
008ee0
 47  36  68	Untitled
008ee0
 37  54  86	Untitled
008ee0
 60  48  90	Untitled
008ee0
255 255 255	Foreground (white)
008ee0
 66  54  99	Untitled
008ee0
 74  61  98	Untitled
008ee0
 49  78 126	Untitled
008ee0
 43  87 151	Untitled
008ee0
 92  89  95	Untitled
008ee0
 54 104 183	Untitled
008ee0
158 153 156	Untitled
008ee0
201 196 195	Untitled
008ee0
008ee0

Update the <samp>`Palettes'</samp> menu to get the new color positions from

008ee0
the file you just edited and open the palette with double click. 
be6bef

008ee0

Update the <tt>`syslinux.gpl'</tt> file copying the following file:

6c4982

008ee0
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
be6bef
008ee0

to

be6bef

008ee0
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.gpl
be6bef
008ee0

With the <samp>`CentOS-TreeFlower-Syslinux'</samp> palette opened in the

008ee0
<samp>`Palette Editor'</samp>, open (Ctrl+O) the following file:
be6bef

008ee0
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.ppm
be6bef
008ee0

and replace its color information with that one in

008ee0
<samp>`CentOS-TreeFlower-Syslinux'</samp> palette.  When you are replacing
008ee0
color information inside <tt>`syslilnux.ppm'</tt>, remember to keep the
008ee0
order of colors just as they are in the
008ee0
<samp>`CentOS-TreeFlower-Palette'</samp> palette.  
be6bef

008ee0

The <tt>`syslinux.ppm'</tt> file is 16 pixels width and 1 pixel height, so

008ee0
you probably need to zoom it a bit to set the color information in
008ee0
their place when using the pen tool with the brush <samp>`Circle (01)
008ee0
(1 x 1)'</samp>.
6c4982

008ee0

Once you've updated the <samp>`syslinux.ppm'</samp> file, it is time to update

008ee0
the following file:
be6bef

008ee0
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.hex
008ee0
008ee0

The <tt>`syslinux.hex'</tt> file contains the color information in

008ee0
hexadecimal notation.  The color information in hexadecimal notation
008ee0
is required by ppmtolss16 command.  The ppmtolss16
008ee0
command produces the final LSS16 image format that is used by syslinux
008ee0
program inside CentOS distribution.
008ee0

008ee0

The color information inside <tt>`syslinux.hex'</tt> must match the one in

008ee0
<tt>`syslinux.ppm'</tt> and <tt>`syslinux.gpl'</tt>. For example, based on
008ee0
<tt>`CentOS-TreeFlower-Syslinux'</tt> palette of colors above, consider
008ee0
the following <tt>`syslinux.hex'</tt> file:
008ee0

008ee0
#000000=0
008ee0
#171423=1
008ee0
#221930=2
008ee0
#25233c=3
008ee0
#2f2444=4
008ee0
#253656=5
008ee0
#3c305a=6
008ee0
#ffffff=7
008ee0
#423663=8
008ee0
#4a3d62=9
008ee0
#314e7e=10
008ee0
#2b5797=11
008ee0
#5c595f=12
008ee0
#3668b7=13
008ee0
#9e999c=14
008ee0
#c9c4c3=15
be6bef
2bb528
008ee0
008ee0

3.35.2.3 Grub background

6c4982
6c4982
008ee0
008ee0

3.35.3 Usage

6c4982
008ee0
    008ee0
  • ...
  • 008ee0
    5fb024
    5fb024
    008ee0
    5fb024

    3.35.4 See also

    4c79b5
    4c79b5
    4c79b5
    4c79b5
    008ee0
    [ < ]
    008ee0
    [ > ]
    4c79b5
       
    4c79b5
    [ << ]
    008ee0
    [ Up ]
    008ee0
    [ >> ]
    4c79b5
    4c79b5

    4c79b5
     <font size="-1">
    008ee0
      This document was generated on December, 2 2010 using texi2html 1.76.
    4c79b5
     </font>
    4c79b5
     
    4c79b5
    4c79b5

    4c79b5
    </body>
    4c79b5
    </html>