Skip to content

Instantly share code, notes, and snippets.

View MindScriptAct's full-sized avatar

Raimundas Banevicius MindScriptAct

View GitHub Profile
@nsdevaraj
nsdevaraj / ColorUtil.as
Created October 21, 2010 10:37
Static functions for conversions like RGB to CMYK, RGB to HSV, HSV to RGB, ColorTransformation, int color value to RGB and Color Calculations.
package
{
import flash.geom.ColorTransform;
public class ColorUtil
{
/**
* RGBColorTransform Create an instance of the information.
* @ Param rgb RGB integer value that indicates (0x000000 - 0xFFFFFF)
* @ Param amount of fill adaptive value (0.0 - 1.0)
* @ Param alpha transparency (0.0 - 1.0)