diff options
| author | Mike Wey | 2011-02-24 23:46:03 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-02-24 23:46:03 +0100 |
| commit | 846bd1de37e9dfbbcf33f21d86e755ac833c4e5d (patch) | |
| tree | 5e6a26d97e0f1e9db0cd23f2d01dab98c9cd8e52 /dmagick/Color.d | |
| parent | e8b49e7144796ae7a6c763f1a2836073a77bc661 (diff) | |
Add geometry argumants to Options.d, and add some documentation.
Diffstat (limited to 'dmagick/Color.d')
| -rw-r--r-- | dmagick/Color.d | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
