fortplot
fortplot Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
clamp_to_unit
Function
5 statements
Source File
fortplot_color_definitions.f90
fortplot_color_definitions
clamp_to_unit
Contents
public function clamp_to_unit(value) result(clamped)
Clamp value to [0,1] range
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=wp),
intent(in)
::
value
Return Value
real(kind=wp)