fortplot
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
color_to_ansi256
Function
8 statements
Source File
fortplot_text_color.f90
fortplot_text_color
color_to_ansi256
Contents
public pure function color_to_ansi256(r, g, b) result(idx)
Map an RGB triple to a 6x6x6 color-cube index (16..231).
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=wp),
intent(in)
::
r
real(kind=wp),
intent(in)
::
g
real(kind=wp),
intent(in)
::
b
Return Value
integer