fortplot
fortplot Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
color_to_byte
Function
11 statements
Source File
fortplot_raster_drawing.f90
fortplot_raster_drawing
color_to_byte
Contents
public function color_to_byte(color_val) result(byte_val)
Convert floating-point color value [0,1] to byte [0,255]
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=wp),
intent(in)
::
color_val
Return Value
integer(kind=1)