G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.4 (2026/08/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_trigonometry_three_channel_gradient◀  rep_technorobbo_strange_attractor    |    rep_trigonometry_map  ▶

rep_trigonometry_three_channel_gradient

Arguments:

  • _resolution,_chan_order={ 0=0,1,2 | 1=0,2,1 | 2=1,0,2 | 3=1,2,0 | 4=2,0,1 | 5=2,1,0 },_chan_form_a={ 0=sinusoidal | 1=cosinusoidal | 2=cubic-sinusoidal | 3=cubic-cosinusoidal | 4=cubic-sinusoidal-cosinusoidal },_multiplier_a>0,_valueshift_a,0>=_midgray_expf_a>=1,_lightness_merge_factor_a>=1,_lightness_end_expf_a>0,0>=_gray2col_end_a>=1,_chan_form_b={ 0=sinusoidal | 1=cosinusoidal | 2=cubic-sinusoidal | 3=cubic-cosinusoidal | 4=cubic-sinusoidal-cosinusoidal },_multiplier_b>0,_valueshift_b,0>=_midgray_expf_b>=1,_lightness_merge_factor_b>=1,_lightness_end_expf_b>0,0>=_gray2col_end_b>=1,_chan_form_c={ 0=sinusoidal | 1=cosinusoidal | 2=cubic-sinusoidal | 3=cubic-cosinusoidal | 4=cubic-sinusoidal-cosinusoidal },_multiplier_c>0,_valueshift_c,0>=_midgray_expf_c>=1,_lightness_merge_factor_c>=1,_lightness_end_expf_c>0,0>=_gray2col_end_c>=1

Description:

Creates trigonometry gradients or map images with trigonometry coloring.

(equivalent to shortcut command rep_tg3).


_resolution defines the length of gradient or the way it is going to be mapped. See below for more information on _resolution.
_chan_order defines the order of channel of gradient
_chan_form refers to the formula each channels use
_multiplier defines the multiplication of base gradient used to map formula based on trigonometry.
_valueshift refers to the value shift of base gradient
_midgray_expf refers to the middle-point of base gradient used to map formula based on trigonometry relative to middle.
_lightness_merge_factor refers to the merging of lightness gradient with color gradient. Used to add white and black to gradient ends.
_lightness_end_expf defines the magnitude of shades and tind of each end of end gradient
_gray2col_end defines how much the end gradient overrides the base gradient

_resolution values and processing info
-----
Info #1: If _resolution is a number: If _resolution is negative, create a 3-channel trigonometry vertical gradient, else create 3-channel trigonometry horizontal gradient.
Info #2: If _resolution is "8i", then map trigonometry function by first dividing by 255, then perform trigonometry function, finally multiply by 255.
Info #3: If _resolution is "8il", then image will be converted into RGBA luminosity format, then perform trigonometry function, finally multiply by 255.
Info #4: If _resolution is empty, then directly map trigonometry function.
-----

Default values:

resolution=256,_chan_order=0,_chan_form_a=0,_multiplier_a=1,_valueshift_a=0,_midgray_expf_a=1,_lightness_merge_factor_a=1,_lightness_end_expf_a=0,_gray2col_end_a=1,_chan_form_b=_chan_form_a,_multiplier_b=_multiplier_a,_valueshift_b=_valueshift_a,_midgray_expf_b=_midgray_expf_a,_lightness_merge_factor_b=_lightness_merge_factor_a,_lightness_end_expf_b=_lightness_end_expf_a,_gray2col_end_b=_gray2col_end_a,_chan_form_c=_chan_form_b,_multiplier_c=_multiplier_b,_valueshift_c=_valueshift_b,_midgray_expf_c=_midgray_expf_b,_lightness_merge_factor_c=_lightness_merge_factor_b,_lightness_end_expf_c=_lightness_end_expf_b,'_gray2col_end_c=_gray2col_end_b'

Author: Reptorian.
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.