Welcome To Snipplr


Everyone's Recent Snippets Tagged color



Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0 484 posted 12 years ago by adrianparr
Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")
1 409 posted 12 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 614 posted 12 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 426 posted 12 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 551 posted 12 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 717 posted 12 years ago by sadus
return a random color
1 460 posted 12 years ago by Empreintes
1 12627 posted 12 years ago by traeregan
0 401 posted 12 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 427 posted 12 years ago by math89
0 1156 posted 12 years ago by icebob
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 481 posted 12 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 786 posted 12 years ago by rivaledsouls
This handy little function can be used to convert a displayObject to black and white.
0 698 posted 12 years ago by adrianparr
0 473 posted 12 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 557 posted 12 years ago by philchristensen