You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## <a name="C04"></a> Grayscale view of of canvas with colors
193
+
\anchor C04
194
+
## Grayscale view of of canvas with colors
190
195
One can toggle between a grayscale preview and the regular colored mode using
191
196
`TCanvas::SetGrayscale()`. Note that in grayscale mode, access via RGB
192
197
will return grayscale values according to ITU standards (and close to b&w
@@ -203,7 +208,8 @@ Begin_Macro(source)
203
208
}
204
209
End_Macro
205
210
206
-
## <a name="C05"></a> Color palettes
211
+
\anchor C05
212
+
## Color palettes
207
213
It is often very useful to represent a variable with a color map. The concept
208
214
of "color palette" allows to do that. One color palette is active at any time.
209
215
This "current palette" is set using:
@@ -287,7 +293,8 @@ Begin_Macro(source)
287
293
../../../tutorials/graphs/multipalette.C
288
294
End_Macro
289
295
290
-
## <a name="C06"></a> High quality predefined palettes
296
+
\anchor C06
297
+
## High quality predefined palettes
291
298
\since **6.04:**
292
299
62 high quality palettes are predefined with 255 colors each.
293
300
Despite the [disadvantages of the Rainbow color map](https://root.cern.ch/rainbow-color-map),
@@ -910,7 +917,8 @@ End_Macro
910
917
</td></tr>
911
918
</table>
912
919
913
-
## <a name="C061"></a> Palette inversion
920
+
\anchor C061
921
+
## Palette inversion
914
922
Once a palette is defined, it is possible to invert the color order thanks to the
915
923
method TColor::InvertPalette. The top of the palette becomes the bottom and vice versa.
916
924
@@ -924,7 +932,8 @@ Begin_Macro(source)
924
932
}
925
933
End_Macro
926
934
927
-
## <a name="C07"></a> Color transparency
935
+
\anchor C07
936
+
## Color transparency
928
937
To make a graphics object transparent it is enough to set its color to a
929
938
transparent one. The color transparency is defined via its alpha component. The
930
939
alpha value varies from `0.` (fully transparent) to `1.` (fully
0 commit comments