Programs

ProgramSource FileDescription
check check.f90

Automatic tests launched by fpm test.

colormaps_list colormaps_list.f90

Creates the colormaps_list/COLORMAPS_LIST_*.md files using the Colormaps_info class.

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. The name of your colormap must conform to the max length defined in forcolormap_parameters.f90 You can also download your colormap from a .txt file by using the load() method instead of the set() method.

demo_reverse demo_reverse.f90

This example demonstrates the use of the 'reverse' optional argument to reverse the order of a colormap. The name of your colormap must conform to the max length defined in forcolormap_parameters.f90 You can also download your colormap from a .txt file by using the load() method instead of the set() method.

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. And all categorical colormaps begin with a dark colour, but a shift can be applied to begin with a brighter colour. Two levels towards left Finally, 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. You can print all colormap information using default verbosity (level 1).

Read more…