by CERN

Advanced graphical user interface for particle simulation programs
◀ Previous   △ Index   Next ▶

Palette templates

    Flair offers a set predefined palettes, the traditionally used
    fluka palettes as well a set of new perceptually uniform color
    palettes.

    All palettes are located in the 'palette' subdirectory of the
    flair installation.

    The user can create his own palettes by creating a subdirectory
    palette under the ${HOME}/.flair directory
                    $ mkdir ${HOME}/.flair/palette

    The files are simple text files with the extension .pal
    It should contain multiple lines defining the colors to be used
    in the formate
                  red green blue
                  red green blue
                  ...
    with each color in the range from 0..1

    If only one line is present then it will be interpreted as the
    index of an rgb-formulae for red, green and blue as in gnuplot.

    e.g. the default gnuplot palette is generated by
              7 5 15

    rgb-formulae
              0: 0
              1: 0.5
              2: 1
              3: x
              4: x**2
              5: x**3
              6: x**4
              7: sqrt(x)
              8: sqrt(sqrt(x))
              9: sin(radians(90*x))
              10: cos(radians(90*x))
              11: abs(x-0.5)
              12: (2*x-1)**2
              13: sin(radians(180*x))
              14: abs(cos(radians(180*x)))
              15: sin(radians(360*x))
              16: cos(radians(360*x))
              17: abs(sin(radians(360*x)))
              18: abs(cos(radians(360*x)))
              19: abs(sin(radians(720*x)))
              20: abs(cos(radians(720*x)))
              21: 3*x
              22: 3*x-1
              23: 3*x-2
              24: abs(3*x-1)
              25: abs(3*x-2)
              26: (3*x-1)/2
              27: (3*x-2)/2
              28: abs((3*x-1)/2)
              29: abs((3*x-2)/2)
              30: 0 if x<=0.25 else (1 if x>=0.57 else x/0.32-0.78125)
              31: 0 if x<=0.42 else (1 if x>=0.92 else 2*x-0.84)
              32: x*4 if x<=0.42 else (-2*x+1.84 if x<=0.92 else x/0.08-11.5)
              33: abs(2*x - 0.5)
              34: 2*x
              35: 2*x - 0.5
              36  2*x - 1

◀ Previous   △ Index   Next ▶