21.3 Writing Plug-ins

Using predefined plug-ins is convenient, but you won’t always find exactly what you need, and if you have a little programming experience, writing your own plug-ins can be more fun anyway. After you have written the first three or four, you’ll find writing them easy. In this section, we present plug-ins written in the three main programming languages: Scheme, Python, and C.

Scheme

Scripts written in Scheme are called Script-Fu. Take, for example, the script for Image: Colors > Map > Colormap. This script includes the function script-fu-makecmap-array, which returns an array containing the colors for a specified palette. This function can be used in other scripts that need color palette information.

The function is written in ...

Get The Book of GIMP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.