From 846bd1de37e9dfbbcf33f21d86e755ac833c4e5d Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Thu, 24 Feb 2011 23:46:03 +0100 Subject: Add geometry argumants to Options.d, and add some documentation. --- dmagick/Color.d | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dmagick/Color.d') diff --git a/dmagick/Color.d b/dmagick/Color.d index 7c50595..c35b796 100644 --- a/dmagick/Color.d +++ b/dmagick/Color.d @@ -222,6 +222,12 @@ class Color return toString(); } + unittest + { + Color color = new Color("red"); + assert( color.name == "red" ); + } + static Quantum scaleDoubleToQuantum(double value) { return cast(Quantum)(value*QuantumRange); -- cgit v1.2.3