This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
OperatorShadow
shadow(options = {})
Add a drop shadow to the image. This will increase the image size just enough to include the shadow
Use the following keys in the options hash:
:offset
Distance of the drop shadow from the image. Positive numbers move it down and right, negative numbers move it up and left.
:blur
How blurry the shadow is. Roughly corresponds to distance, in pixels, of the feathered shadow edge.
:background
A color for the background of the image. What the shadow fades into.
:color
Color of the shadow itself.
:opacity
Opacity of the shadow. A value between0.0and1.0, where1.0is opaque and0.0is transparent.
Example
@photo.operate do |image|
# Default settings
image.shadow(
:color => 'black', # or color(0, 0, 0)
:background => 'white', # or color(255, 255, 255)
:blur => 8,
:offset => '2x2',
:opacity => 0.75
)
# Huge red shadow on a black background
image.shadow(
:color => color(255, 0, 0),
:background => 'black', # or color(255, 255, 255)
:blur => 30,
:offset => '20x10',
:opacity => 1
)
end






