From 03072ef67af0623758a660e2cd3fb5e153133efa Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 24 May 2023 08:09:03 -0400 Subject: Update chickadee manual. --- manuals/chickadee/Colors.html | 62 +++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'manuals/chickadee/Colors.html') diff --git a/manuals/chickadee/Colors.html b/manuals/chickadee/Colors.html index a7fc10f..4a361b1 100644 --- a/manuals/chickadee/Colors.html +++ b/manuals/chickadee/Colors.html @@ -1,6 +1,6 @@ - - + --> + - + Colors (The Chickadee Game Toolkit) - - - - - - - - - - - + + + + + + + + + + + - + @@ -84,7 +84,7 @@ ul.no-bullet {list-style: none}

Next: , Up: Graphics   [Contents][Index]

-
+

5.3.1 Colors

Merriam-Webster defines color as “a phenomenon of light (such as red, @@ -106,18 +106,18 @@ depending on what’s most convenient. The first is make-color where you specify each channel exactly as described above. This is fully opaque magenta:

-
-
(make-color 1.0 0.0 1.0 1.0)
+
+
(make-color 1.0 0.0 1.0 1.0)
 

Many people are used to representing colors as 6 or 8 digit hexadecimal numbers, so Chickadee also allows that. Here’s magenta, again:

-
-
(rgba #xFF00FFFF)
-(rgb #xFF00FF) ; equivalent to the above
-
+
+
(rgba #xFF00FFFF)
+(rgb #xFF00FF) ; equivalent to the above
+
Procedure: make-color r g b a
@@ -179,11 +179,11 @@ transparent.

Convert the hexadecimal color code in the string s to a color object. The following string formats are supported:

-
-
(string->color "#FF00FFFF")
-(string->color "FF00FFFF")
-(string->color "#FF00FF")
-(string->color "FF00FF")
+
+
(string->color "#FF00FFFF")
+(string->color "FF00FFFF")
+(string->color "#FF00FF")
+(string->color "FF00FF")
 
@@ -365,7 +365,7 @@ factor alpha, a number in the range [0, 1].
Variable: tango-aluminium-6
-
+

Next: , Up: Graphics   [Contents][Index]

-- cgit v1.2.3