From d75fe4058da7aaf64e53b4210614a189cf67dfb5 Mon Sep 17 00:00:00 2001 From: scuri Date: Tue, 22 Jun 2010 15:10:12 +0000 Subject: *** empty log message *** --- html/en/func/attributes.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'html/en/func/attributes.html') diff --git a/html/en/func/attributes.html b/html/en/func/attributes.html index 984af01..cc87ee6 100644 --- a/html/en/func/attributes.html +++ b/html/en/func/attributes.html @@ -8,18 +8,21 @@

General Attributes

+
long int cdCanvasForeground(cdCanvas* canvas, long int color); [in C]
 void cdCanvasSetForeground(cdCanvas* canvas, long int color); [in C]
 
 canvas:Foreground(color: lightuserdata) -> (old_color: lightuserdata) [in Lua]
 canvas:SetForeground(color: lightuserdata) [in Lua]
-

Configures a new current foreground color and returns the previous one. This - color is used in all primitives (lines, areas, marks and text). Default value: +

Configures a new current foreground color and returns the previous one. + This color is used in all primitives (lines, areas, marks and text). Default + value: CD_BLACK. Value CD_QUERY simply returns the - current value.

+ current value.

Notice that CD_QUERY conflicts with color RGBA=(255,255,255,0) (full - transparent white). Use SetForeground to avoid the - conflict. See also Color Coding.

+ transparent white). Use SetForeground to avoid the + conflict. See also Color Coding.

+
long int cdCanvasBackground(cdCanvas* canvas, long int color); [in C]
 void cdCanvasSetBackground(cdCanvas* canvas, long int color); [in C]
 
@@ -33,7 +36,8 @@ canvas:SetBackground(color: lightuserdata) [in Lua]
Value CD_QUERY simply returns the current value.

Notice that CD_QUERY conflicts with color RGBA=(255,255,255,0) (full transparent white). Use SetBackground to avoid the - conflict. See also Color Coding.

+ conflict. See also Color Coding.

+
int cdCanvasWriteMode(cdCanvas* canvas, int mode); [in C]
 
 canvas:WriteMode(mode: number) -> (old_mode: number) [in Lua]
@@ -44,6 +48,6 @@ canvas:WriteMode(mode: number) -> (old_mode: number) [in Lua]

Note: operation XOR is very useful, because, using white as the foreground color and drawing the same image twice, you can go back to the original color, - before the drawing. This is commonly used for mouse selection feedback.

+ before the drawing. This is commonly used for mouse selection feedback.

-- cgit v1.2.3