Welcome To Snipplr


Everyone's Recent Snippets Tagged color



Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0 621 posted 13 years ago by adrianparr
Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")
1 558 posted 13 years ago by mike_fowler
The docs for the Sekati SWC are here: http://docs.sekati.com/sekati/sekati/utils/ColorUtil.html Another useful blog post: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
0 805 posted 13 years ago by adrianparr
This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/ I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extrac...
0 538 posted 13 years ago by mgeduld
All credit for this class goes to Mark Walters (www.yourpalmark.com) This class needs to be put in the package structure "com/yourpalmark/utils"
0 734 posted 13 years ago by adrianparr
So i wanted to spit all my error_log(); and error_reporting(E_ALL); to syslog on my MacOSX and syslog would output it on a custom file.
0 875 posted 13 years ago by sadus
return a random color
1 592 posted 13 years ago by Empreintes
1 16549 posted 13 years ago by traeregan
0 504 posted 13 years ago by sospartan
You have a RGB value and want to convert it into Hexadecimal mode, here’s how to do it using JavaScript.
0 569 posted 13 years ago by math89
see demo at http://adamcoulombe.info/lab/as3/stripes.html. This demonstrates the use of k-lib, Kuler API library for AS3. As well as Traer Physics for to handle the springiness.
1 635 posted 13 years ago by adamcoulombe
This requires the [RGB](http://snipplr.com/view/34818/as3--rgb-class-for-rgb-to-hex/) class I posted as well
0 982 posted 13 years ago by rivaledsouls
This handy little function can be used to convert a displayObject to black and white.
0 882 posted 13 years ago by adrianparr
0 582 posted 14 years ago by adrianparr
First there was: [http://snipplr.com/view/15246/color-coded-svn-status](http://snipplr.com/view/15246/color-coded-svn-status) Then there was: [http://snipplr.com/view/16540/color-coded-svn-status-v2](http://snipplr.com/view/16540/color-coded-svn-s...
0 707 posted 14 years ago by philchristensen
The ColorMatrix class by Grant Skinner allows you to modify the Brightness, Contrast, Saturation and Hue of a DisplayObject.
0 687 posted 14 years ago by adrianparr