fortplot
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
pack_rgb
Function
4 statements
Source File
fortplot_text_color.f90
fortplot_text_color
pack_rgb
Contents
public pure function pack_rgb(r, g, b) result(packed)
Pack an RGB triple (0..1) into a single 24-bit integer for the per-cell color buffer.
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