<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/mask</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 21:39:38 GMT</pubDate>
<item>
<title>(CSS) CSS3 box-shadow can replace mask for mobile - ryanfiorini</title>
<link>http://snipplr.com/view/64356/css3-boxshadow-can-replace-mask-for-mobile/</link>
<description><![CDATA[ <p>This is a good replacement for a mask for mobile devices.  You are still able to click through the shadow to the text behind.</p> ]]></description>
<pubDate>Wed, 04 Apr 2012 22:07:34 GMT</pubDate>
<guid>http://snipplr.com/view/64356/css3-boxshadow-can-replace-mask-for-mobile/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 getVisibleBounds - adrianparr</title>
<link>http://snipplr.com/view/63449/as3-getvisiblebounds/</link>
<description><![CDATA[ <p>All credit for this goes to Zach Foley (aka Plastic Sturgeon)</p> ]]></description>
<pubDate>Mon, 20 Feb 2012 21:09:35 GMT</pubDate>
<guid>http://snipplr.com/view/63449/as3-getvisiblebounds/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Create Random Password - adrianparr</title>
<link>http://snipplr.com/view/56932/as3-create-random-password/</link>
<description><![CDATA[ <p>Based upon this (https://gist.github.com/988479) but made a few fixes.</p> ]]></description>
<pubDate>Thu, 21 Jul 2011 00:26:45 GMT</pubDate>
<guid>http://snipplr.com/view/56932/as3-create-random-password/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 invert image transparency - Winkyboy</title>
<link>http://snipplr.com/view/54809/as3-invert-image-transparency/</link>
<description><![CDATA[ <p>This inverts the transparency on a Bitmap (probably supplied a PNG source) that specifically has two colors in it; "#656565" and "transparent" - you can tweak the threshold lines specifically if you'd like to modify that to use a range, or whatever.

Adapted from http://stackoverflow.com/questions/608087/flex-actionscript-white-to-transparent and http://www.sephiroth.it/tutorials/flashPHP/thresold/</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 08:17:38 GMT</pubDate>
<guid>http://snipplr.com/view/54809/as3-invert-image-transparency/</guid>
</item>
<item>
<title>(ActionScript 3) as3 gradient mask - mecsekikrisztian</title>
<link>http://snipplr.com/view/51535/as3-gradient-mask/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 04 Apr 2011 23:31:03 GMT</pubDate>
<guid>http://snipplr.com/view/51535/as3-gradient-mask/</guid>
</item>
<item>
<title>(PHP) Mask Array Function - for setting default array structures and masking - RobertWHurst</title>
<link>http://snipplr.com/view/45767/mask-array-function--for-setting-default-array-structures-and-masking/</link>
<description><![CDATA[ <p>Summary
=======
A useful function for masking arrays. Very useful if you have a function or method that takes arguments in an array, and you would like to force that array to have a specific structure.

Its also great for setting defaults due to the fact that whatever structure or variables that are missing from the arguments array, and are present in the default (mask) array will be copied from the default array and merged into the returned array.

Description
========

**mask_array**( array $defaults , array $arguments [, bool $keep_unset ] )

Accepts two arrays. The first array is used as a mask on the second array.


Parameters
========

**$defaults** - An array of defaults to use as a mask.
**$arguments** - An array of arguments to be filtered by the mask array.
**$keep_unset** - Setting this to true disables discarding variables and structure that will not fit within the mask.

Example
======

    /* 
      * Basic use case
      */
     
    $defaults = array(
        'colour' => 'red',
        'shape' => 'circle'
        'size' => 'large'
    );

    $arguments = array(
        'colour' => 'blue'
        'wooden' => true
    );

    $filtered = mask_array($defaults, $arguments) ;

Result
====

**$filtered** will look like this:

    array(
        color => blue,
        shape => circle,
        size => large
    )

Note that the key 'broken' is discarded, while the color is carried over.

If the third argument is set to true the result would be the following:

    array(
        color => blue,
        shape => circle,
        size => large,
        wooden => true
    )

Note that because keep unset is true the mask does not cut out the key 'broken' is included.

Hope that you find this useful

~Robert Hurst</p> ]]></description>
<pubDate>Wed, 15 Dec 2010 12:41:52 GMT</pubDate>
<guid>http://snipplr.com/view/45767/mask-array-function--for-setting-default-array-structures-and-masking/</guid>
</item>
<item>
<title>(C++) [OpenCV] Use a image to mask another image - browny</title>
<link>http://snipplr.com/view/40262/opencv-use-a-image-to-mask-another-image/</link>
<description><![CDATA[ <p>利用一張影像當做遮罩，只顯示來源影像的一部分！</p> ]]></description>
<pubDate>Fri, 10 Sep 2010 13:39:27 GMT</pubDate>
<guid>http://snipplr.com/view/40262/opencv-use-a-image-to-mask-another-image/</guid>
</item>
<item>
<title>(jQuery) Input Mask - must</title>
<link>http://snipplr.com/view/39519/input-mask/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 25 Aug 2010 20:52:07 GMT</pubDate>
<guid>http://snipplr.com/view/39519/input-mask/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Draw a Simple Rectangular Mask - adrianparr</title>
<link>http://snipplr.com/view/29279/as3-draw-a-simple-rectangular-mask/</link>
<description><![CDATA[ <p>This is handy for quickly creating you own rectangular masks on-the-fly.</p> ]]></description>
<pubDate>Thu, 04 Mar 2010 09:05:52 GMT</pubDate>
<guid>http://snipplr.com/view/29279/as3-draw-a-simple-rectangular-mask/</guid>
</item>
<item>
<title>(CSS) CSS3 Image Mask - crs</title>
<link>http://snipplr.com/view/24902/css3-image-mask/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Dec 2009 09:09:04 GMT</pubDate>
<guid>http://snipplr.com/view/24902/css3-image-mask/</guid>
</item>
<item>
<title>(ActionScript) 45 degree bars - orazal</title>
<link>http://snipplr.com/view/19702/45-degree-bars/</link>
<description><![CDATA[ <p>Creates a mask made of 45 degree bars to later animate in sequence</p> ]]></description>
<pubDate>Mon, 14 Sep 2009 11:39:31 GMT</pubDate>
<guid>http://snipplr.com/view/19702/45-degree-bars/</guid>
</item>
<item>
<title>(JavaScript) InputMask jQuery Plugin - kouphax</title>
<link>http://snipplr.com/view/9402/inputmask-jquery-plugin/</link>
<description><![CDATA[ <p>Based on my Annotations plugin this plugin offers the ability to use Mask annotations to apply input masks over input elements on a page.  Very much BETA.  See comments for use.

</p> ]]></description>
<pubDate>Fri, 31 Oct 2008 08:52:24 GMT</pubDate>
<guid>http://snipplr.com/view/9402/inputmask-jquery-plugin/</guid>
</item>
<item>
<title>(Other) AS2 Fuse AttachMovieからクラスに引数を渡す - daisuke103</title>
<link>http://snipplr.com/view/5071/as2-fuse-attachmovie/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 14 Feb 2008 19:43:47 GMT</pubDate>
<guid>http://snipplr.com/view/5071/as2-fuse-attachmovie/</guid>
</item>
<item>
<title>(Other) AS2 Fuseとマスクで雪崩のように画面遷移 - daisuke103</title>
<link>http://snipplr.com/view/4986/as2-fuse/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 11 Feb 2008 10:04:44 GMT</pubDate>
<guid>http://snipplr.com/view/4986/as2-fuse/</guid>
</item>
<item>
<title>(Python) PyS60 - Thread - whitetiger</title>
<link>http://snipplr.com/view/1636/pys60--thread/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:44 GMT</pubDate>
<guid>http://snipplr.com/view/1636/pys60--thread/</guid>
</item>
<item>
<title>(Python) Python - create attributes - whitetiger</title>
<link>http://snipplr.com/view/1628/python--create-attributes/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:35 GMT</pubDate>
<guid>http://snipplr.com/view/1628/python--create-attributes/</guid>
</item>
<item>
<title>(Python) Python - scrittura in unicode - whitetiger</title>
<link>http://snipplr.com/view/1625/python--scrittura-in-unicode/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:33 GMT</pubDate>
<guid>http://snipplr.com/view/1625/python--scrittura-in-unicode/</guid>
</item>
<item>
<title>(Other) Python - eggs - whitetiger</title>
<link>http://snipplr.com/view/1602/python--eggs/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:07 GMT</pubDate>
<guid>http://snipplr.com/view/1602/python--eggs/</guid>
</item>
<item>
<title>(Python) Python - Copy List - whitetiger</title>
<link>http://snipplr.com/view/1594/python--copy-list/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:54:55 GMT</pubDate>
<guid>http://snipplr.com/view/1594/python--copy-list/</guid>
</item>
<item>
<title>(JavaScript) Masked Input v1.0 - Leech</title>
<link>http://snipplr.com/view/544/masked-input-v10/</link>
<description><![CDATA[ <p>Class to mask inputs (does not work right on opera).
Created: 2005.08.08 - Modified: 2005.11.19</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 09:03:02 GMT</pubDate>
<guid>http://snipplr.com/view/544/masked-input-v10/</guid>
</item>
</channel>
</rss>