cvs: peardoc / manual.xml.in /en/guide/developers recommendations.xml

From: Date: Sun, 29 Feb 2004 10:17:29 +0000
Subject: cvs: peardoc / manual.xml.in /en/guide/developers recommendations.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2800@lists.php.net to get a copy of this message
neufeind Sun Feb 29 05:17:29 2004 EDT Modified files: /peardoc manual.xml.in /peardoc/en/guide/developers recommendations.xml Log: added recommendations; small docbook-fixes http://cvs.php.net/diff.php/peardoc/manual.xml.in?r1=1.25&r2=1.26&ty=u Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.25 peardoc/manual.xml.in:1.26 --- peardoc/manual.xml.in:1.25 Sun Jan 25 17:33:07 2004 +++ peardoc/manual.xml.in Sun Feb 29 05:17:28 2004 @@ -48,6 +48,7 @@ &guide.developers.packagedef; &guide.developers.release; &guide.developers.supporting; + &guide.developers.recommendations; <!-- &guide.developers.documentation; --> </part> http://cvs.php.net/diff.php/peardoc/en/guide/developers/recommendations.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/guide/developers/recommendations.xml diff -u peardoc/en/guide/developers/recommendations.xml:1.1 peardoc/en/guide/developers/recommendations.xml:1.2 --- peardoc/en/guide/developers/recommendations.xml:1.1 Sun Feb 29 05:01:18 2004 +++ peardoc/en/guide/developers/recommendations.xml Sun Feb 29 05:17:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <chapter id="developers.recommendations"> <docinfo> <author> @@ -44,13 +44,19 @@ <para> An example using our "PEAR-green" would look like: - <example> - $color = array(0x33, 0x99, 0x00); - + <programlisting role="php"> +<![CDATA[ +&dollar;color = array(0x33, 0x99, 0x00); +]]> + </programlisting> + or - $color = array(51, 153, 0); - </example> + <programlisting role="php"> +<![CDATA[ +&dollar;color = array(51, 153, 0); +]]> + </programlisting> Please note that the internal, numerical representation of both forms of the example are equal. The values represent the RGB (red, green, @@ -69,10 +75,12 @@ An example of our pear-color with our "PEAR-green" with aprox. 80% intensity would be: - <example> - $color = array(0x33, 0x99, 0x00, 0xCC); - </example> - + <programlisting role="php"> +<![CDATA[ +&dollar;color = array(0x33, 0x99, 0x00, 0xCC); +]]> + </programlisting> + For consistency the alpha-value is also from the range 0..255. A value of 255 means fully opaque (full color-intensity, same as in RGB- notation), 0 means fully transparent. @@ -95,34 +103,26 @@ identifier is needed. The optional identifier "type" can be added to the color array. - <example> - $color = array(0x33, 0x99, 0x00, 0xCC, "type" => "RGB"); - </example> - + <programlisting role="php"> +<![CDATA[ +&dollar;color = array(0x33, 0x99, 0x00, 0xCC, "type" => "RGB"); +]]> + </programlisting> + Currently the following types are definied, with array-indices from 0..n follwing the colornames in the table: - - <table> - <tgroup cols="2"> - <thead> - <row> - <entry>type</entry> - <entry>colornames</entry> - </row> - </thead> - <tbody> - <row> - <entry>RGB</entry> - <entry>red, green, blue</entry> - </row> - <row> - <entry>CYMK</entry> - <entry>cyan, yellow, magenta, black (key)</entry> - </row> - </tbody> - </tgroup> - </table> + </para> + <itemizedlist> + <listitem> + <simpara>for RGB: red, green, blue</simpara> + </listitem> + <listitem> + <simpara>for CYMK: cyan, yellow, magenta, black (key)</simpara> + </listitem> + </itemizedlist> + + <para> Please note that also the RGBA-representation has the type "RGB" since it's closely related. </para>

« previous php.pear.doc (#2800) next »