class Chevalet::Filters::Grid

Draw a grid over the image.

Parameters

background

The grid background color. See Chevalet::Filters for information on colors. (Default: none)

color

The color of the grid lines. See Chevalet::Filters for information on colors. (Default: rgba(184, 255, 252, 0.33))

size

The grid scale in pixels. (Default: 10)

Examples

Draw translucent grid lines every 10 pixels, with more opaque lines every 100 pixels:

[{
  "filter": "grid",
  "params": { "color": "rgba(184, 255, 252, 0.33)", "size": 10 }
},{
  "filter": "grid",
  "params": { "color": "rgba(184, 255, 252, 0.75)", "size": 100 }
}]

Constants

DefaultParams