Skip to content
🎉 Angular Three v4 is here! Read the announcement

NgtpHueSaturation

The hue/saturation effect allows you to shift colors and adjust color intensity across the entire scene.

import { NgtpEffectComposer, NgtpHueSaturation } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer>
<ngtp-hue-saturation [options]="{
hue: 0,
saturation: 0.2
}" />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpHueSaturation],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
huenumber0Hue rotation in radians (-PI to PI)
saturationnumber0Saturation adjustment (-1 to 1)
@Component({
template: `
<ngtp-effect-composer>
<!-- Reduce saturation for a muted, cinematic look -->
<ngtp-hue-saturation [options]="{ saturation: -0.5 }" />
<ngtp-vignette [options]="{ darkness: 0.4 }" />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpHueSaturation, NgtpVignette],
})
export class SceneGraph {}
  • hue: 0 means no color shift
  • saturation: -1 creates a grayscale image
  • saturation: 1 doubles the color intensity
  • Combine with NgtpBrightnessContrast for complete color grading
  • Use small hue values for subtle color temperature adjustments