Module: Compass::Magick::Types

Defined in:
lib/magick/types.rb,
lib/magick/types/gradients.rb,
lib/magick/types/solid.rb

Overview

The Types module includes all fill types available in Compass Magick.

Types generate Canvas objects with the given options, e.g., a solid color or a linear gradient. The resulting Canvas is then composed on top of the original image using alpha blending.

This can be a slow operation, but it reduces the amount of work required and abstracts the drawing logic in four easy steps - draw B/W shape, fill rectangle, mask and compose on top of original image.

See Also:

Defined Under Namespace

Modules: Gradients Classes: Solid