# How to apply preset color map to vtkColorTransferFunction?

**URL:** https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166
**Category:** Support
**Created:** [March 29, 2022, 9:47am UTC](https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166 "2022-03-29T09:47:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [March 30, 2022, 9:05pm UTC](https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166/2 "2022-03-30T21:05:36Z")

</div>

Hi, Eino,

As far as I know, that is a higher level functionality added to `vtk.js`. I don’t think the VTK base library has something like this and you probably have to write code to make a preset collection of color tables like this user here: [Display data with a "preset" LookupTable](https://discourse.vtk.org/t/display-data-with-a-preset-lookuptable/7139) . Maybe you can copy the part of Paraview code ([GitHub - Kitware/ParaView: VTK-based Data Analysis and Visualization Application](https://github.com/Kitware/ParaView)) that implements it.

regards,

Paulo

---

_[View the full topic](https://discourse.vtk.org/t/how-to-apply-preset-color-map-to-vtkcolortransferfunction/8166)._
