diff options
Diffstat (limited to 'manual/advanced_topics/viewports/colour-vp-syntax.tex')
-rw-r--r-- | manual/advanced_topics/viewports/colour-vp-syntax.tex | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/manual/advanced_topics/viewports/colour-vp-syntax.tex b/manual/advanced_topics/viewports/colour-vp-syntax.tex index 2b0e932af7..d027c3b757 100644 --- a/manual/advanced_topics/viewports/colour-vp-syntax.tex +++ b/manual/advanced_topics/viewports/colour-vp-syntax.tex | |||
@@ -1,9 +1,14 @@ | |||
1 | \subsubsection{Viewport Declaration Syntax} | 1 | \subsubsection{Viewport Declaration Syntax} |
2 | 2 | ||
3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour])}% | 3 | \config{\%V(x,y,[width],[height],[font]) \%Vf([fgcolour]) \%Vb([bgcolour]) % |
4 | \%Vg(start, end [,text])}% | ||
4 | 5 | ||
5 | \begin{itemize} | 6 | \begin{itemize} |
7 | \item \%Vf and \%Vb set the foreground and background colours respectively. | ||
6 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. | 8 | \item `fgcolour' and `bgcolour' are 6-digit RGB888 colours, e.g. FF00FF. |
9 | \item \%Vg defines a gradient fill that can then be used with the \%Vs tag. | ||
10 | `start' and `end' set the initial and final colours, and the optional `text' | ||
11 | sets the text colour. Colours are 6-digit RGB888, e.g. FF00FF. | ||
7 | \item `font' is a number: 0 is the built-in system font, 1 is the | 12 | \item `font' is a number: 0 is the built-in system font, 1 is the |
8 | current menu font, and 2-9 are additional skin loaded fonts (see | 13 | current menu font, and 2-9 are additional skin loaded fonts (see |
9 | \reference{ref:multifont}). | 14 | \reference{ref:multifont}). |
@@ -12,15 +17,16 @@ | |||
12 | \end{itemize} | 17 | \end{itemize} |
13 | 18 | ||
14 | \note{The correct number of commas with hyphens in | 19 | \note{The correct number of commas with hyphens in |
15 | blank fields are still needed in any case.} | 20 | blank fields are still needed.} |
16 | 21 | ||
17 | \begin{example} | 22 | \begin{example} |
18 | %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF) | 23 | %V(12,20,-,-,1) %Vf(000000) %Vb(FFFFFF) %Vg(FFC0CB, FF0000, FFFF00) |
19 | %sThis viewport is displayed permanently. It starts 12px from the left and | 24 | %sThis viewport is displayed permanently. It starts 12px from the left and |
20 | %s20px from the top of the screen, and fills the rest of the screen from | 25 | %s20px from the top of the screen, and fills the rest of the screen from |
21 | %sthat point. The lines will scroll if this text does not fit in the viewport. | 26 | %sthat point. The lines will scroll if this text does not fit in the viewport. |
22 | %sThe user font is used, and the foreground and background are set to black | 27 | %sThe user font is used, and the foreground and background are set to black |
23 | %sand white respectively. | 28 | %sand white respectively. The line gradient is set to pink to red with yellow |
29 | %text. | ||
24 | \end{example} | 30 | \end{example} |
25 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} | 31 | \begin{rbtabular}{.75\textwidth}{XX}{\textbf{Viewport definition} & \textbf{Default value}}{}{} |
26 | width/height & remaining part of screen \\ | 32 | width/height & remaining part of screen \\ |