From d3e8dfed2b191a2c5c0be631c09dfeedd4e4ffd8 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Wed, 11 Jan 2012 15:18:35 +0530 Subject: [PATCH] gears.colors() docs: fix pattern string used in the example In general, patterns are specified as 'type:arguments', where 'arguments' is specific to the pattern used. The example provided in the documentation, defined the pattern type to be 'linear', but used arguments meant to create radial pattern. So we modify the example to use the correct type -- 'radial'. Signed-off-by: Anurag Priyam Signed-off-by: Uli Schlachter --- lib/gears/color.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/color.lua.in b/lib/gears/color.lua.in index 6b1c7e404..266b1623e 100644 --- a/lib/gears/color.lua.in +++ b/lib/gears/color.lua.in @@ -130,7 +130,7 @@ types = { -- This function can create solid, linear, radial and png patterns. In general, -- patterns are specified as "type:arguments". "arguments" is specific to the -- pattern used. For example, one can use --- "linear:50,50,10:55,55,30:0,#ff0000:0.5,#00ff00:1,#0000ff" +-- "radial:50,50,10:55,55,30:0,#ff0000:0.5,#00ff00:1,#0000ff" -- Any argument that cannot be understood is passed to create_solid_pattern(). -- @see create_solid_pattern, create_png_pattern, create_linear_pattern, -- create_radial_pattern