Capítulo 7. Pintar con GIMP

Tabla de contenidos

1. La selección
1.1. Difuminar
1.2. Hacer una selección parcialmente transparente
2. Crear y usar selecciones
2.1. Moving or Resizing a Selection
2.2. Añadir o sustraer selecciones
3. The Quick Mask
3.1. Generalidades
3.2. Propiedades
4. Using Quick Mask Mode
5. Rutas
5.1. Creación de rutas
5.2. Propiedades de las rutas
5.3. Rutas y selecciones
5.4. Transformación de las rutas
5.5. Trazar una ruta
5.6. Rutas y texto
5.7. Rutas y archivos SVG
6. Pinceles
7. Añadir pinceles nuevos
8. La caja de diálogo GIH
9. Cambiar el tamaño del pincel
9.1. Cómo cambiar el tamaño de un pincel
9.2. Crear un pincel rápidamente
10. Degradados
11. Patrones
12. Paletas
12.1. Mapa de colores
13. Preajustes
14. Dibujar objetos sencillos
14.1. Dibujar una línea recta
14.2. Crear una forma básica

1. La selección

A menudo, cuando opera sobre una imagen, quiere que sólo una parte de ella se vea afectada. En GIMP, esto se logra seleccionando esa parte. Cada imagen tiene una selección asociada a ella. Muchas operaciones de GIMP, pero no todas, actúan solamente sobre las porciones seleccionadas de la imagen.

Figura 7.1. ¿Cómo aislaría el árbol?

¿Cómo aislaría el árbol?

Hay muchísimas situaciones en las que crear la selección adecuada es la clave para obtener el resultado deseado y, a menudo, esto no es nada fácil de lograr. Por ejemplo, en la imagen de arriba, supongamos que deseamos cortar el árbol del fondo, y pegarlo en otra imagen. Para hacerlo, necesitamos crear una selección que contenga al árbol y a nada más. Esto es difícil porque el árbol tiene una silueta muy compleja, y en varias zonas se hace imposible distinguirlo de los objetos que hay detrás.

Figura 7.2. Selección mostrada como de costumbre, con una línea discontinua.

Selección mostrada como de costumbre, con una línea discontinua.

He aquí un punto muy importante, y es crucial entenderlo. En general cuando se crea una selección, se visualiza como una línea discontinua que encierra una porción de la imagen. La idea que podría hacerse es que la selección es un tipo de contenedor, con las partes de la imagen seleccionadas adentro, y las partes no seleccionadas afuera. Este concepto de selección está bien para muchos propósitos, pero no es del todo correcto.

En realidad la selección está implementada como un canal. En términos de su estructura interna, es idéntico a los canales rojo, verde, azul, y alfa de una imagen. Por esto, la selección tiene un valor definido para cada píxel de la imagen, que va desde 0 (no seleccionado) hasta 255 (completamente seleccionado). La ventaja de esto es que permite que algunos píxeles se encuentren parcialmente seleccionados, dándoles valores intermedios. Como podrá observar, hay muchas situaciones en las que es preferible tener transiciones suaves entre las regiones seleccionadas y las no seleccionadas.

Pues entonces, ¿qué es esa línea de guiones que aparece cuando se crea una selección?

La línea discontinua es una línea de contorno, que divide las áreas que se encuentran más de un 50% seleccionadas, de las áreas que se encuentran menos de un 50% seleccionadas.

Figura 7.3. Same selection in Quick Mask mode.

Same selection in Quick Mask mode.

While looking at the dashed line that represents the selection, always remember that the line only tells part of the story. If you want to see the selection in full detail, the easiest way is to click the Quick Mask button in the lower left corner of the image window. This causes the selection to be shown as a translucent overlay atop the image. Selected areas are unaffected; unselected areas are reddened. The more completely selected an area is, the less red it appears.

Many operations work differently in Quick Mask mode, as mentioned in the Quick Mask overview. Use the Quick Mask button in the lower left corner of the image window to toggle Quick Mask mode on and off.

Figura 7.4. Same selection in Quick Mask mode after feathering.

Same selection in Quick Mask mode after feathering.

1.1. Difuminar

With the default settings, the basic selection tools, such as the Rectangle Select tool, create sharp selections. Pixels inside the dashed line are fully selected, and pixels outside completely unselected. You can verify this by toggling Quick Mask: you see a clear rectangle with sharp edges, surrounded by uniform red. Use the Feather edges checkbox in the Tool Options to toggle between graduated selections and sharp selections. The feather radius, which you can adjust, determines the distance over which the transition occurs.

If you are following along, try this with the Rectangle Select tool, and then toggle Quick Mask. You will see that the clear rectangle has a fuzzy edge.

El difuminado es particularmente útil cuando corta y pega, porque ayuda a que el objeto pegado se combine suavemente en sus contornos.

It is possible to feather a selection at any time, even if it was originally created as a sharp selection. Use SelectFeather from the main menu to open the Feather Selection dialog. Set the feather radius and click OK. Use SelectSharpen to do the opposite—sharpen a graduated selection into an all-or-nothing selection.

[Nota] Nota

Para lectores con una orientación técnica: el difuminado trabaja aplicando un desenfoque gaussiano al canal de selección, con el radio de desenfoque especificado.

1.2. Hacer una selección parcialmente transparente

Puede ajustar la opacidad de la capa, pero no puede hacerlo directamente para una selección. Es bastante útil que la imagen sea transparente como el cristal. Use los siguientes métodos para ajustar la opacidad de la capa:

  • Para selecciones simples, use la herramienta de borrador con la opacidad deseada.

  • For complex selections: use SelectFloat to create a floating selection. This creates a new layer with the selection called Floating Selection (Sección 4.5, “Flotante”). Set the opacity slider in the Layer Dialog to the desired opacity. Then anchor the selection: outside the selection, the mouse pointer includes an anchor. When you click while the mouse pointer includes the anchor, the floating selection disappears from the Layer Dialog and the selection is at the right place and partially transparent (anchoring works this way only if a selection tool is activated: you can also use the Anchor Layer command in the context menu by right clicking on the selected layer in the layer dialog).

    And, if you use this function frequently: Ctrl-C to copy the selection, Ctrl-V to paste the clipboard as a floating selection, and LayerNew Layer… to turn the selection into a new layer. You can adjust the opacity before, or after creating the new layer.

  • Another way: use LayerMaskAdd Layer Masks… to add a layer mask to the layer with the selection, initializing it with the selection. Then use a brush with the desired opacity to paint the selection with black, i.e. paint it with transparency. Then LayerMaskApply Layer Mask. See Sección 2.1.4, “Máscaras de capa”.

  • Para hacer transparente el fondo sólido de una imagen, añada un canal alfa, y use la varita mágica para seleccionar el fondo. Entonces, use la herramienta «recoge color» para seleccionar el color de fondo, que se convierte en el color de primer plano de la caja de herramientas. Ajuste el modo de la herramienta de relleno de cubeta a Borrar color, lo que borrará los píxeles con el color seleccionado; otros píxeles se borrarán parcialmente y cambiará su color.

    El método más sencillo es usar EditarLimpiar, que da una transparencia completa a una selección.