/**
 * Background noise recipe
 * 
 * This recipe use a sass function to generate a .png file
 * 
 * Inspired by a jQuery plugin "Noisy" by Daniel Rapp @DanielRapp
 * @link https://github.com/DanielRapp/Noisy
 * 
 * Converted using Sass by Aaron Russell @aaronrussell & Philipp Bosch @philippbosch
 * @link https://gist.github.com/1021332
 * 
 * Ported to a sass gem by Antti Salonen @antsa
 * @link https://github.com/antsa/sassy_noise
 * 
 * Mixin:        background-noise
 * Function:     background_noise
 * 
 * @author Daniel Rapp @DanielRapp
 * @author Aaron Russell @aaronrussell
 * @author Philipp Bosch @philippbosch
 * @author Antti Salonen @antsa
 * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
 */

@import "compass/css3/images";

// default values
$background-noise-intensity-default:  0.5 !default;
$background-noise-opacity-default:    0.08 !default;
$background-noise-size-default:       200 !default;
$background-noise-monochrome-default: false !default;

@mixin background-noise(
    $intensity:   $background-noise-intensity-default,
    $opacity:     $background-noise-opacity-default,
    $size:        $background-noise-size-default,
    $monochrome:  $background-noise-monochrome-default
)
{
    background-image: background_noise(
        $intensity: $intensity,
        $opacity: $opacity,
        $size: $size,
        $monochrome: $monochrome
    );
    background-repeat: repeat;
}