Module: Squib::Graphics Private
- Defined in:
- lib/squib/graphics/gradient_regex.rb,
lib/squib/graphics/save_pdf.rb,
lib/squib/graphics/save_sprue.rb,
lib/squib/graphics/cairo_context_wrapper.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: CairoContextWrapper, SavePDF, SaveSprue, SaveSpruePDF, SaveSpruePNG
Constant Summary collapse
- STOPS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/ # used to capture the stops \s* # leading whitespace is ok (\#?[\w]+) # color @ # no spaces here (\d+\.?\d*) # offset number /x
- LINEAR_GRADIENT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/ \( \s* # coordinate 1 (\d+\.?\d*) \s* # x1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y1 number \) \s* # space between coordinates is ok \( \s* # coordinate 2 (\d+\.?\d*) \s* # x2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y2 number \) (#{STOPS})+ # stops \s* # trailing whitespace is ok /x
- RADIAL_GRADIENT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/ \( \s* # coordinate 1 (\d+\.?\d*) \s* # x1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # r1 number \) \s* # space between coordinates is ok \( \s* # coordinate 2 (\d+\.?\d*) \s* # x2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # r2 number \) (#{STOPS})+ # stops \s* # trailing whitespace is ok /x