Module: Compass::Canvas::Functions::Context

Included in:
Compass::Canvas::Functions
Defined in:
lib/canvas/functions/context.rb

Overview

Functions for creating a Context interface.

Instance Method Summary collapse

Instance Method Details

#canvas_context(*args) ⇒ Compass::Canvas::Backend::Interface::Context

Returns:



8
9
10
# File 'lib/canvas/functions/context.rb', line 8

def canvas_context(*args)
  Compass::Canvas::Backend::Interface::Context.new(*args)
end

#slow_blur(radius, *args) ⇒ Object

Constructs a slow-blur group.

This function cannot be created in Sass as it is a variadic function.



15
16
17
# File 'lib/canvas/functions/context.rb', line 15

def slow_blur(radius, *args)
  canvas_context(Sass::Script::String.new(Compass::Canvas::Actions::SLOW_BLUR.to_s), *[radius].concat(args))
end