Skip to content
meltingice edited this page Feb 25, 2011 · 1 revision

Utility Functions

CamanJS has a set of utility functions that may be used in your own filters, or even outside of normal CamanJS usage if desired. All of these utility functions are a part of the Caman object, and should be rather self-explanatory:

  • rgb_to_hsl()
  • hsl_to_rgb()
  • rgb_to_hsv()
  • hsv_to_rgb()
  • rgb_to_xyz()
  • xyz_to_rgb()
  • xyz_to_lab()
  • lab_to_xyz()
  • hex_to_rgb()