Add description of PALETTE:get()

This commit is contained in:
Ilari Liusvaara 2015-05-03 02:24:11 +03:00
parent eeaf3706d8
commit 10eb0dbd22
2 changed files with 32 additions and 0 deletions

32
lua.lyx
View file

@ -1467,6 +1467,38 @@ color: number/string: The color value to set.
Set palette <palette> index <index> to color <color>.
\end_layout
\begin_layout Subsubsection
Method get: Get palette entry
\end_layout
\begin_layout Itemize
Syntax: number palette:get(index)
\end_layout
\begin_layout Standard
Parameters:
\end_layout
\begin_layout Itemize
palette: PALETTE: The palette to query
\end_layout
\begin_layout Itemize
index: number: The index of color to get (0-65535).
\end_layout
\begin_layout Standard
Returns:
\end_layout
\begin_layout Itemize
The palette entry as integer.
\end_layout
\begin_layout Standard
Get palette entry <index> of palette <palette> and return it.
\end_layout
\begin_layout Subsubsection
Method hash: Hash a palette
\end_layout

BIN
lua.pdf

Binary file not shown.