Skip to content

Commit b1183ba

Browse files
committed
added missing parenthesis to hue light panel color formula
1 parent ab43600 commit b1183ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Logic Blocks Guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,9 +901,9 @@ Its settings are shown in figure \ref{fig:HueLightPanel} and are as follows:
901901
The color displayed as a function of their input value can be determined with the following formula, where $S$ and $B$ are the saturation and brightness settings respectively. Figure \ref{fig:HueLightPanelColor} shows an example of the resulting colors for inputs in the range $[-1, 1]$ with $\text{saturation} = \text{brightness} = 1$. Inputs smaller than $-1$ result in the $[-1, 0]$ range being repeated, while inputs greater than $1$ result in the $[0, 1]$ range being repeated.
902902

903903
$$\operatorname{color}(x) = \begin{cases}
904-
\operatorname{HSV}(360(x \bmod{1}), S, B) & x > 0 \\
905-
\text{Off (Black)} & x = 0 \\
906-
\operatorname{greyscale}(1 - (x \bmod{1}) \cdot B) & x < 0 \\
904+
\operatorname{HSV}(360(x \bmod{1}), S, B) & (x > 0) \\
905+
\text{Off (Black)} & (x = 0) \\
906+
\operatorname{greyscale}((1 - (x \bmod{1})) \cdot B) & (x < 0) \\
907907
\end{cases}$$
908908

909909
\begin{figure}[H]

0 commit comments

Comments
 (0)