10 #ifndef vtk_m_worklet_colorconversion_Conversions_h
11 #define vtk_m_worklet_colorconversion_Conversions_h
17 namespace colorconversion
41 val = vtkm::Min(255.0f, vtkm::Max(0.0f, val));
45 val[0] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[0]));
46 val[1] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[1]));
50 val[0] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[0]));
51 val[1] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[1]));
52 val[2] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[2]));
56 val[0] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[0]));
57 val[1] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[1]));
58 val[2] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[2]));
59 val[3] = vtkm::Min(255.0f, vtkm::Max(0.0f, val[3]));