From bfbe9e43e108f6816c17b9b7764b75284ac78313 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 14 Dec 2011 19:27:22 -0500 Subject: Re-think colors. Color is a property of light, and thus doesn't include information about transparency. But canvas pixels and object pigments represent a color and a degree of transparency. The new type dmnsn_tcolor/ TColor encapsulates that information. Also, fix the transparent shadow implementation. --- libdimension/solid_pigment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/solid_pigment.c') diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c index 1dbda2d..7f91819 100644 --- a/libdimension/solid_pigment.c +++ b/libdimension/solid_pigment.c @@ -28,7 +28,7 @@ /* Create a solid color */ dmnsn_pigment * -dmnsn_new_solid_pigment(dmnsn_color color) +dmnsn_new_solid_pigment(dmnsn_tcolor color) { dmnsn_pigment *pigment = dmnsn_new_pigment(); pigment->quick_color = color; -- cgit v1.2.3