Welcome To Snipplr


Everyone's Recent Snippets Tagged color



Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0 632 posted 13 years ago by adrianparr
Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")
1 570 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 816 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 548 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 746 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 888 posted 13 years ago by sadus
return a random color
1 601 posted 13 years ago by Empreintes
1 16677 posted 13 years ago by traeregan
0 510 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 580 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 651 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 998 posted 13 years ago by rivaledsouls
This handy little function can be used to convert a displayObject to black and white.
0 895 posted 14 years ago by adrianparr
0 591 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 715 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 701 posted 14 years ago by adrianparr