diff options
author | Björn-Egil Dahlberg <[email protected]> | 2009-11-26 00:51:46 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2009-12-03 14:41:11 +0100 |
commit | 8d2bc786caa82be22d0259cd4a8720a101775eb4 (patch) | |
tree | 17adc31ca010a215ccf6358143ab40f41ee3c36c /lib/percept/src/egd.erl | |
parent | 84adefa331c4159d432d22840663c38f155cd4c1 (diff) | |
download | otp-8d2bc786caa82be22d0259cd4a8720a101775eb4.tar.gz otp-8d2bc786caa82be22d0259cd4a8720a101775eb4.tar.bz2 otp-8d2bc786caa82be22d0259cd4a8720a101775eb4.zip |
Optimize egd render speed and reduce code size
Diffstat (limited to 'lib/percept/src/egd.erl')
-rw-r--r-- | lib/percept/src/egd.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/percept/src/egd.erl b/lib/percept/src/egd.erl index 4becfef19b..7972fde597 100644 --- a/lib/percept/src/egd.erl +++ b/lib/percept/src/egd.erl @@ -128,13 +128,13 @@ line(Image, P1, P2, Color) -> %% @spec color( Value | Name ) -> color() %% where -%% Value = {byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} -%% Name = black | silver | gray | white | maroon | red | purple | fuchia | green | lime | olive | yellow | navy | blue | teal | aqua +%% Value = {byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} +%% Name = black | silver | gray | white | maroon | red | purple | fuchia | green | lime | olive | yellow | navy | blue | teal | aqua %% @doc Creates a color reference. -spec(color/1 :: ( - Value :: {byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} | atom()) -> - color()). + Value :: {byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} | atom()) -> + color()). color(Color) -> egd_primitives:color(Color). |