LegacyColorValue: Difference between revisions
From MultiCharts
m
no edit summary
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM) |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
Where: | Where: | ||
:'''LogicalValue''' - a true/false value; True = Enable; False = Disable. | :'''LogicalValue''' - a true/false value; [[True]] = Enable; [[False]] = Disable. | ||
::* If the attribute is set to '''False''', or not present in the study's code, the RGB (new) 16M color scheme will be used. | ::* If the attribute is set to '''False''', or not present in the study's code, the [[RGB]] (new) 16M color scheme will be used. | ||
::* If LegacyColorValue the attribute is set to '''True''', the legacy (old) 16-bit, 16-color scheme will be used. | ::* If LegacyColorValue the attribute is set to '''True''', the legacy (old) 16-bit, 16-color scheme will be used. | ||
== Notes == | == Notes == | ||
When a color name is converted to a numerical color value, the specified scheme will be followed. | * When a color name is converted to a numerical color value, the specified scheme will be followed. | ||
* To ensure compatibility, the attribute [LegacyColorValue = True] is inserted automatically when older versions, prior to v8.1, of EasyLanguage studies are imported. | |||
== Examples == | == Examples == | ||
Enable legacy color value interpretation: | Enable legacy color value interpretation: | ||
Line 21: | Line 20: | ||
<syntaxhighlight>[LegacyColorValue = True];</syntaxhighlight> | <syntaxhighlight>[LegacyColorValue = True];</syntaxhighlight> | ||
Create a Green color plot using the legacy color scheme: | Create a [[Green]] color plot using the legacy color scheme: | ||
<syntaxhighlight>[LegacyColorValue = True]; | <syntaxhighlight>[LegacyColorValue = True]; | ||
Line 28: | Line 27: | ||
SetPlotColor(1,4);</syntaxhighlight> | SetPlotColor(1,4);</syntaxhighlight> | ||
Create a Green color plot using the RGB color scheme: | Create a Green color plot using the [[RGB]] color scheme: | ||
<syntaxhighlight>[LegacyColorValue = False]; | <syntaxhighlight>[LegacyColorValue = False]; |