XML-Technologien / XSL-FO / Referenz / Funktionen in XSL-FO / rgb
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendationnummer: 5.10.2
Kategorie: 5.10.2 Color Functions
Die rgb-Funktion gibt eine spezifische Farbe des RGB-Farbspektrums aus.
Werte
color rgb(numeric, numeric)
XSL-FO Version: 1.0
Unterstützung:
Conformance Level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | J | J | J | ? | J |
XSL-FO Beispiel:
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="main">
<fo:region-body margin-bottom="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="xsl-region-body">
<fo:block color="rgb(0,0,0)">
rgb(0,0,0)
</fo:block>
<fo:block color="rgb(0,255,255)">
rgb(0,255,255)
</fo:block>
<fo:block color="rgb(255,0,0)">
rgb(255,0,0)
</fo:block>
<fo:block color="rgb(0,0,255)">
rgb(0,0,255)
</fo:block>
<fo:block color="rgb(0,255,0)">
rgb(0,255,0)
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>In der Ausgabe: