Create an array of colors from a palette
palette
(palette name)
Returns an array that contains colors from the current palette or a palette with the specified name.
Each color is 4-element array of components {r g b opacity}.
Example:
"p := palette
for [i 501 504] [print :p,:i]
print "|---|
setpalette "blue2red
"p := palette
for [i 501 504] [print :p,:i]
Output:
{32.5490196078431 100 37.2549019607843 100}
{32.9411764705882 100 37.2549019607843 100}
{32.9411764705882 100 36.8627450980392 100}
{33.3333333333333 100 36.8627450980392 100}
---
{44.3137254901961 5.88235294117647 48.6274509803922 100}
{44.7058823529412 5.88235294117647 48.2352941176471 100}
{44.7058823529412 5.88235294117647 48.2352941176471 100}
{45.0980392156863 5.88235294117647 47.843137254902 100}
See also:
Table of Content