Welcome To Snipplr
Everyone's Recent ActionScript 3 Snippets Tagged color
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.
0
907
posted 10 years ago by vamapaull
ActionScript 3
AS3 ColorUtil Class (inc. RGBtoCMYK, CMYKtoRGB, subtractive colour & addative colour)
Full credit for this class goes to Deva Raj (@nsdevaraj). Many thanks.
1
842
posted 13 years ago by adrianparr
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
636
posted 13 years ago by adrianparr
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
828
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
556
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
755
posted 13 years ago by adrianparr
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
661
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
1009
posted 13 years ago by rivaledsouls
This handy little function can be used to convert a displayObject to black and white.
0
906
posted 14 years ago by adrianparr
The ColorMatrix class by Grant Skinner allows you to modify the Brightness, Contrast, Saturation and Hue of a DisplayObject.
0
714
posted 14 years ago by adrianparr
I really like the use of constants and the dollar sign ($) in this class. I have only used $ in jQuery to designate objects. Looks like one might use $ in AS3 classes to designate/differentiate passed-in variables from internal method/global vars.
1
737
posted 14 years ago by mhulse
This is an incomplete color spectrum because cos waves will not reach all the colors. For a proper graph refer to this wiki page http://en.wikipedia.org/wiki/HSL_color_space
1
539
posted 14 years ago by forchid
« Prev 1 Next »