KHTML
Color.cpp File Reference
#include "config.h"
#include "wtf/Platform.h"
#include "Color.h"
#include "PlatformString.h"
#include <math.h>
#include <wtf/Assertions.h>
#include <wtf/MathExtras.h>
Include dependency graph for Color.cpp:

Go to the source code of this file.
Namespaces | |
namespace | WebCore |
Defines | |
#define | max(a, b) (((a)>(b)?(a):(b))) |
#define | min(a, b) (((a)<(b)?(a):(b))) |
Functions | |
static int | WebCore::blendComponent (int c, int a) |
static double | WebCore::calcHue (double temp1, double temp2, double hueVal) |
int | WebCore::differenceSquared (const Color &c1, const Color &c2) |
RGBA32 | WebCore::makeRGB (int r, int g, int b) |
RGBA32 | WebCore::makeRGBA (int r, int g, int b, int a) |
RGBA32 | WebCore::makeRGBAFromHSLA (double hue, double saturation, double lightness, double alpha) |
Variables | |
const int | WebCore::cAlphaIncrement = 17 |
const int | WebCore::cEndAlpha = 204 |
const int | WebCore::cStartAlpha = 153 |
const RGBA32 | WebCore::darkenedWhite = 0xFFABABAB |
const RGBA32 | WebCore::lightenedBlack = 0xFF545454 |
Define Documentation