From 278b7c09fa5cb20f2ad250c1ff159f8f39b78cee Mon Sep 17 00:00:00 2001 From: koldo Date: Tue, 10 Jan 2012 20:22:54 +0000 Subject: [PATCH] .Core: Added a bit of doc git-svn-id: svn://ultimatepp.org/upp/trunk@4391 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/src.tpp/Color$en-us.tpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uppsrc/Core/src.tpp/Color$en-us.tpp b/uppsrc/Core/src.tpp/Color$en-us.tpp index c6944f501..91579fd1a 100644 --- a/uppsrc/Core/src.tpp/Color$en-us.tpp +++ b/uppsrc/Core/src.tpp/Color$en-us.tpp @@ -305,6 +305,14 @@ olor][@(0.0.255) `&]_[*@3 c])&] [s2; Converts a color [%-*@3 c][%- to grayscale].&] [s3; &] [s4;%- &] +[s5;:IsDark`(Color`):%- [@(0.0.255) bool]_[* IsDark]([_^Color^ Color]_[*@3 c])&] +[s2; True if [%-*@3 c] grayscale level is lower than 80.&] +[s3; &] +[s4;%- &] +[s5;:IsLight`(Color`):%- [@(0.0.255) bool]_[* IsLight]([_^Color^ Color]_[*@3 c])&] +[s2; True if [%-*@3 c] grayscale is higher than 175 (255 `- 80).&] +[s3; &] +[s4;%- &] [s5;:StraightColor`(RGBA`):%- [_^Color^ Color]_[* StraightColor]([_^RGBA^ RGBA]_[*@3 rgba])&] [s2; Converts a RGBA structure [%-*@3 rgba] to a [* Color].&] [s3; &]