From 96a00f25bcd7219c5e06557ecca8a27923568bc9 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 20 Mar 2016 13:40:40 -0700 Subject: [PATCH] Updated RgbColor object API (markdown) --- RgbColor-object-API.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RgbColor-object-API.md b/RgbColor-object-API.md index ed95314..828ac0c 100644 --- a/RgbColor-object-API.md +++ b/RgbColor-object-API.md @@ -53,4 +53,11 @@ This is a static function, which means you need to call it scoped to the object ``` RgbColor results = RgbColor::LinearBlend(RgbColor(255,0,0), RgbColor(0,255,0), 0.33f); ``` - +### static RgbColor BilinearBlend(RgbColor c00, RgbColor c01, RgbColor c10, RgbColor c11, float x, float y); +This will blend between four colors by the amount defined by 2d weighting values. +c00 - upper left quadrant color +c01 - upper right quadrant color +c10 - lower left quadrant color +c11 - lower right quadrant color +x - unit value (0.0 - 1.0) that defines the blend progress in horizontal space +y - unit value (0.0 - 1.0) that defines the blend progress in vertical space \ No newline at end of file