| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=ik), | private | :: | b | = | 0_ik |
rgb |
|
| integer(kind=ik), | private | :: | c | = | 0_ik |
cmyk |
|
| character(len=256), | private | :: | color_name |
color name |
|||
| integer(kind=ik), | private | :: | decimal | = | 0_ik |
decimal |
|
| integer(kind=ik), | private | :: | g | = | 0_ik |
rgb |
|
| real(kind=rk), | private | :: | h | = | 0.0_rk |
hsv |
|
| character(len=7), | private | :: | hex | = | '#000000' |
hex |
|
| real(kind=rk), | private | :: | hl | = | 0.0_rk |
hsl |
|
| integer(kind=ik), | private | :: | k | = | 0_ik |
cmyk |
|
| integer(kind=ik), | private | :: | m | = | 0_ik |
cmyk |
|
| integer(kind=ik), | private | :: | r | = | 0_ik |
rgb |
|
| real(kind=rk), | private | :: | s | = | 0.0_rk |
hsv |
|
| real(kind=rk), | private | :: | sl | = | 0.0_rk |
hsl |
|
| real(kind=rk), | private | :: | v | = | 0.0_rk |
hsv |
|
| real(kind=rk), | private | :: | vl | = | 0.0_rk |
hsl |
|
| real(kind=rk), | private | :: | xyz_x | = | 0.0_rk |
xyz |
|
| real(kind=rk), | private | :: | xyz_y | = | 0.0_rk |
xyz |
|
| real(kind=rk), | private | :: | xyz_z | = | 0.0_rk |
xyz |
|
| integer(kind=ik), | private | :: | y | = | 0_ik |
cmyk |
| generic, public :: assignment(=) => copy_color | |
| procedure, public :: convert | |
| procedure, public :: find_nearest | |
| procedure, public :: get | |
| procedure, public :: get_b | |
| procedure, public :: get_g | |
| procedure, public :: get_r | |
| procedure, public :: print | |
| procedure, public :: print_available_colors | |
| procedure, public :: save | |
| procedure, public :: save_available_colors | |
| procedure, public :: set | |
| procedure, private :: copy_color | |
| procedure, private :: get_cmyk | |
| procedure, private :: get_decimal | |
| procedure, private :: get_hex | |
| procedure, private :: get_hsl | |
| procedure, private :: get_hsv | |
| procedure, private :: get_name | |
| procedure, private :: get_rgb | |
| procedure, private :: get_xyz | |
| procedure, private :: print_cmyk | |
| procedure, private :: print_decimal | |
| procedure, private :: print_hex | |
| procedure, private :: print_hsl | |
| procedure, private :: print_hsv | |
| procedure, private :: print_name | |
| procedure, private :: print_rgb | |
| procedure, private :: print_xyz | |
| procedure, private :: set_by_name | |
| procedure, private :: set_cmyk | |
| procedure, private :: set_decimal | |
| procedure, private :: set_hex | |
| procedure, private :: set_hsl | |
| procedure, private :: set_hsv | |
| procedure, private :: set_name | |
| procedure, private :: set_rgb | |
| procedure, private :: set_xyz |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | c | |||
| integer(kind=ik), | intent(in) | :: | m | |||
| integer(kind=ik), | intent(in) | :: | y | |||
| integer(kind=ik), | intent(in) | :: | k | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | to |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | decimal | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=:), | intent(out), | optional, | allocatable | :: | name | |
| integer(kind=ik), | intent(out), | optional | :: | r | ||
| integer(kind=ik), | intent(out), | optional | :: | g | ||
| integer(kind=ik), | intent(out), | optional | :: | b | ||
| integer(kind=ik), | intent(out), | optional | :: | c | ||
| integer(kind=ik), | intent(out), | optional | :: | m | ||
| integer(kind=ik), | intent(out), | optional | :: | y | ||
| integer(kind=ik), | intent(out), | optional | :: | k | ||
| integer(kind=ik), | intent(out), | optional | :: | decimal | ||
| character(len=7), | intent(out), | optional | :: | hex | ||
| real(kind=rk), | intent(out), | optional | :: | h | ||
| real(kind=rk), | intent(out), | optional | :: | s | ||
| real(kind=rk), | intent(out), | optional | :: | v | ||
| real(kind=rk), | intent(out), | optional | :: | hl | ||
| real(kind=rk), | intent(out), | optional | :: | sl | ||
| real(kind=rk), | intent(out), | optional | :: | vl | ||
| real(kind=rk), | intent(out), | optional | :: | xyz_x | ||
| real(kind=rk), | intent(out), | optional | :: | xyz_y | ||
| real(kind=rk), | intent(out), | optional | :: | xyz_z |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| integer(kind=ik), | intent(out) | :: | c | |||
| integer(kind=ik), | intent(out) | :: | m | |||
| integer(kind=ik), | intent(out) | :: | y | |||
| integer(kind=ik), | intent(out) | :: | k |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| integer(kind=ik), | intent(out) | :: | decimal |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| character(len=7), | intent(out) | :: | hex |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| real(kind=rk), | intent(out) | :: | h | |||
| real(kind=rk), | intent(out) | :: | s | |||
| real(kind=rk), | intent(out) | :: | l |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| real(kind=rk), | intent(out) | :: | h | |||
| real(kind=rk), | intent(out) | :: | s | |||
| real(kind=rk), | intent(out) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| character(len=:), | intent(out), | allocatable | :: | name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this | |||
| real(kind=rk), | intent(out) | :: | x | |||
| real(kind=rk), | intent(out) | :: | y | |||
| real(kind=rk), | intent(out) | :: | z |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | hex | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | h | |||
| real(kind=rk), | intent(in) | :: | s | |||
| real(kind=rk), | intent(in) | :: | l | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | h | |||
| real(kind=rk), | intent(in) | :: | s | |||
| real(kind=rk), | intent(in) | :: | v | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(color), | intent(out), | dimension(:), allocatable | :: | colors |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in), | optional | :: | option |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| integer(kind=ik), | intent(out) | :: | c | |||
| integer(kind=ik), | intent(out) | :: | m | |||
| integer(kind=ik), | intent(out) | :: | y | |||
| integer(kind=ik), | intent(out) | :: | k |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| integer(kind=ik), | intent(out) | :: | decimal |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| character(len=7), | intent(out) | :: | hex |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| real(kind=rk), | intent(out) | :: | h | |||
| real(kind=rk), | intent(out) | :: | s | |||
| real(kind=rk), | intent(out) | :: | l |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| real(kind=rk), | intent(out) | :: | h | |||
| real(kind=rk), | intent(out) | :: | s | |||
| real(kind=rk), | intent(out) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b | |||
| real(kind=rk), | intent(out) | :: | x | |||
| real(kind=rk), | intent(out) | :: | y | |||
| real(kind=rk), | intent(out) | :: | z |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in), | optional | :: | file_name | ||
| integer, | intent(in), | optional | :: | height | ||
| integer, | intent(in), | optional | :: | width |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in), | optional | :: | file_name | ||
| integer, | intent(in), | optional | :: | height | ||
| integer, | intent(in), | optional | :: | width |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | name | |||
| integer(kind=ik), | intent(in), | optional | :: | r | ||
| integer(kind=ik), | intent(in), | optional | :: | g | ||
| integer(kind=ik), | intent(in), | optional | :: | b | ||
| integer(kind=ik), | intent(in), | optional | :: | c | ||
| integer(kind=ik), | intent(in), | optional | :: | m | ||
| integer(kind=ik), | intent(in), | optional | :: | y | ||
| integer(kind=ik), | intent(in), | optional | :: | k | ||
| integer(kind=ik), | intent(in), | optional | :: | decimal | ||
| character(len=*), | intent(in), | optional | :: | hex | ||
| real(kind=rk), | intent(in), | optional | :: | h | ||
| real(kind=rk), | intent(in), | optional | :: | s | ||
| real(kind=rk), | intent(in), | optional | :: | v | ||
| real(kind=rk), | intent(in), | optional | :: | hl | ||
| real(kind=rk), | intent(in), | optional | :: | sl | ||
| real(kind=rk), | intent(in), | optional | :: | vl | ||
| real(kind=rk), | intent(in), | optional | :: | xyz_x | ||
| real(kind=rk), | intent(in), | optional | :: | xyz_y | ||
| real(kind=rk), | intent(in), | optional | :: | xyz_z | ||
| logical, | intent(in), | optional | :: | use_library |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| integer(kind=ik), | intent(in) | :: | c | |||
| integer(kind=ik), | intent(in) | :: | m | |||
| integer(kind=ik), | intent(in) | :: | y | |||
| integer(kind=ik), | intent(in) | :: | k |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| integer(kind=ik), | intent(in) | :: | decimal |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | hex |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | h | |||
| real(kind=rk), | intent(in) | :: | s | |||
| real(kind=rk), | intent(in) | :: | l |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | h | |||
| real(kind=rk), | intent(in) | :: | s | |||
| real(kind=rk), | intent(in) | :: | v |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| integer(kind=ik), | intent(in) | :: | r | |||
| integer(kind=ik), | intent(in) | :: | g | |||
| integer(kind=ik), | intent(in) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | x | |||
| real(kind=rk), | intent(in) | :: | y | |||
| real(kind=rk), | intent(in) | :: | z |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | x | |||
| real(kind=rk), | intent(in) | :: | y | |||
| real(kind=rk), | intent(in) | :: | z | |||
| integer(kind=ik), | intent(out) | :: | r | |||
| integer(kind=ik), | intent(out) | :: | g | |||
| integer(kind=ik), | intent(out) | :: | b |