Programs

ProgramSource FileDescription
colormaps_list colormaps_list.f90

Creates the colormaps_list/COLORMAPS_LIST_*.md files using the Colormaps_info class. Write colormap information to a file

create create.f90

This example demonstrates creating a custom colormap using methods like create_lagrange() and create_bezier().

demo demo.f90

This example will create colorbar files for each available colormap and the corresponding test images. It also demonstrates how you can create your own colormap defined in an array, or import it from a text file. You can create your own colormap using that array. The name of your colormap must conform to the max length defined in colormap_parameters.f90 Use the create() method instead of the set() method. We create PPM files (binary encoded by default) for each built-in colormap. The built-in z=f(x,y) test function is in the [0, 2] range: Cubehelix can also accept other parameters (varargs array):

Read more…
demo_reverse demo_reverse.f90

This example demonstrates the use of the 'reverse' optional argument to reverse the order of a colormap. You can create your own colormap using that array. The name of your colormap must conform to the max length defined in colormap_parameters.f90 Use the create() method instead of the set() method. We create PPM files (binary encoded by default) for each built-in colormap. The built-in z=f(x,y) test function is in the [0, 2] range: Cubehelix can also accept other parameters (varargs array):

Read more…
example1 example1.f90

This example demonstrates how ForImage can be used to import/export PPM files.

extract extract.f90

This example demonstrates the process of extracting a specified number of colors. The variable 'extractedLevels' represents the number of colors to be extracted from the colormap.

modify modify.f90

This example shows how you can modify a colormap with methods like shift(), in concrete cases. In the Scientific colour maps collection, all cyclic colormaps have their bright part in the middle. But we can shift the dark part towards the center. In the Scientific colour maps collection, all categorical colormaps begin with a dark colour, but a shift can be applied to begin with a brighter colour. Two levels towards left Starting from a diverging colormap, we can obtain what could be called a diverging multi-sequential colormap.

write_info info.f90

Demonstrates how to obtain information about a colormap using the Colormaps_info class. Print all colormap information using default verbosity (level 1)

Read more…