Blame Manual/repository-html/repository_49.html

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

2.45 The <tt>`trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds'</tt> Directory

671838
671838
995423
671838

2.45.1 Goals

ee1f37
632e8b

This section exists to orgnize backgrounds of TreeFlower

632e8b
artistic motif.
632e8b

ee1f37
995423
671838

2.45.2 Description

ee1f37
632e8b
995423
632e8b

2.45.2.1 Desktop background

632e8b
632e8b

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

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

632e8b

Open the png version with GIMP.

632e8b

632e8b

Save the png version as a project of GIMP inside

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

632e8b

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

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

632e8b
632e8b
Layer 1: Background
632e8b
632e8b

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

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

632e8b
632e8b
Layer 2: Shadow#1
632e8b
632e8b

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

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

632e8b
632e8b
Layer 3: Shadow#2
632e8b
632e8b

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

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

632e8b
632e8b
Layer 4: Pattern (Paper)
632e8b
632e8b

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

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

632e8b
632e8b
Layer 5: Pattern (Stripes)
632e8b
632e8b

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

632e8b
used over the artistic motif. This layer do masks the artistic motif
632e8b
so the stripes are only applied to it. This layer is set to 10% of
632e8b
opacity.
632e8b

632e8b
632e8b
Layer 6: Shadow#3
632e8b
632e8b

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

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

632e8b
632e8b
Layer 7: Shadow#4
632e8b
632e8b

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

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

632e8b
632e8b
Layer 8: Color#1
632e8b
632e8b

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

632e8b
color over the whole image. This layer is set to 10% of opacity.
632e8b

632e8b
632e8b
Layer 9: Color#2
632e8b
632e8b

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

632e8b
blue (010a88) color over the whole image. This layer is set to 10% of
632e8b
opacity.
632e8b

632e8b
632e8b
632e8b
632e8b
info

Note

There is no definite combination. To get the appropriate

632e8b
visual design is a matter of constant testing and personal taste.
632e8b

632e8b
632e8b

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

632e8b
design. To export the final design use the same name of your vectorial
632e8b
design plus <samp>`-final.png'</samp> extension. 
632e8b

632e8b

You can repeat these steps to create images for other screen

632e8b
resolutions.
632e8b

632e8b
995423
632e8b

2.45.2.2 Anaconda Prompt (syslinux) background

632e8b
632e8b

When building syslinux backgrounds it is needed to take into account

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

632e8b

Another point to consider is the forground and background definition

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

632e8b

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

632e8b
to top:
632e8b

632e8b
632e8b
Layer 1: Background
632e8b
632e8b

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

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

632e8b
632e8b
Layer 2: Pattern (Paper)
632e8b
632e8b

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

632e8b
paper pattern shipped with GIMP 2.2. This layer doesn't mask the
632e8b
artistic motif. This layer is set to 30% of opacity.
632e8b

632e8b
632e8b
Layer 3: Pattern (Stripes)
632e8b
632e8b

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

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

632e8b
632e8b
Layer 4: Shadow#1
632e8b
632e8b

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

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

632e8b
632e8b
Layer 5: Color#1
632e8b
632e8b

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

632e8b
color to cover the whole image. This layer is set to 10% of opacity.
632e8b

632e8b
632e8b
Layer 6: Color#2
632e8b
632e8b

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

632e8b
color to cover the whole image. This layer is set to 10% of opacity.
632e8b

632e8b
632e8b
Layer 7: Shadow#2
632e8b
632e8b

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

632e8b
left (000000) to right (transparent) covering 70% of the image
632e8b
approximately. 
632e8b

632e8b
632e8b
632e8b
632e8b

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

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

632e8b

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

632e8b
syslinux background composition we've done using <samp>`File > Save as
632e8b
Copy ...'</samp> option in the following location:
632e8b

632e8b
trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Img/Png/640x300-final.png
632e8b
632e8b

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

632e8b
following command:
632e8b

632e8b
centos-art render --entry=trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Prompt
632e8b
632e8b

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

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

632e8b

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

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

632e8b
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
632e8b
632e8b

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

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

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

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

632e8b
the file you just edited and open the palette with double click. 
632e8b

632e8b

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

632e8b

632e8b
~/.gimp-2.2/palettes/CentOS-TreeFlower-Syslinux.gpl
632e8b
632e8b

to

632e8b

632e8b
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.gpl
632e8b
632e8b

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

632e8b
<samp>`Palette Editor'</samp>, open (Ctrl+O) the following file:
632e8b

632e8b
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.ppm
632e8b
632e8b

and replace its color information with that one in

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

632e8b

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

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

632e8b

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

632e8b
the following file:
632e8b

632e8b
trunk/Identity/Themes/Motifs/TreeFlower/Colors/syslinux.hex
632e8b
632e8b

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

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

632e8b

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

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

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

2.45.2.3 Grub background

ee1f37
ee1f37
995423
671838

2.45.3 Usage

ee1f37
671838
    671838
  • ...
  • 671838
    ee1f37
    671838
    995423
    671838

    2.45.4 See also

    ee1f37
    ee1f37
    ee1f37
    ee1f37
    995423
    [ < ]
    995423
    [ > ]
    ee1f37
       
    671838
    [ << ]
    995423
    [ Up ]
    995423
    [ >> ]
    ee1f37
    ee1f37

    ee1f37
     <font size="-1">
    995423
      This document was generated on March, 9 2011 using texi2html 1.76.
    ee1f37
     </font>
    ee1f37
     
    ee1f37
    ee1f37

    ee1f37
    </body>
    ee1f37
    </html>