LC-Magick #10

hh hh at
Sun Feb 11 07:08:55 EST 2018

Added today LC-Magick #10: Color Tonality Curve

Variant 1: Pure LC Script, use it best with LC 6 (slow with LC 8/9).
Variant 2: Uses JS in a (hidden) browser widget for use with LC 8/9.

Variant 1 runs on Mac/ Win 7+10/ linux 32bit with LC 6/7/8/9 and Raspi 6/7.
Variant 2 runs on Mac/ Win 7+10/ Ubuntu 64bit with (latest) LC 8/9.

A tone curve has to map each of the color values 0-255 of your image to a
value in range 0-255. Some well known image processing apps use internally
for setting saturation, brightness or gamma also such curves.

You can set the tone curve
= by an editable formula or 
= by 2 up to 9 handles (control points) that determine either,
... a polygon chain (linear pieces between the control points),
... a bezier curve of order 1=linear, 2= square ... up to order 8
    (usually most control points are not on the curve),
... a natural spline curve (control points are on the curve),
... a clamped spline curve (control points are on the curve).

The LC-Magick Collection

LC-Magick #10 - Color Tonality Curve (HermannH)
LC-Magick #9 - Selective Gray (HermannH)
LC-Magick #8 - MoonEffect (Fisheye) (HermannH and BerndN)
LC-Magick #7 - Cuboid (HermannH)
LC-Magick #6 - Bilinear Perspective Distortion (HermannH and BerndN)
LC-Magick #5 - Circular (Polar) Image Distortion (HermannH and BerndN)
LC-Magick #4 - Linear Perspective Image Distortion (HermannH)
LC-Magick #3 - Image Multiplexing (HermannH)
LC-Magick #2 - Pointillize (HermannH)
LC-Magick #1 - Blur and Pixelate (ScottR)

A lot of the ideas above is based on ideas presented in imageMagick's
documentation, see

More information about the Use-livecode mailing list