From ce5196424e5306c8994db280afa0e53f48167be9 Mon Sep 17 00:00:00 2001 From: Jonas Belouadi Date: Mon, 22 Mar 2021 23:05:46 +0100 Subject: [PATCH] Docs: Fix code example for cairo usage. (#3295) --- docs/16-using-cairo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/16-using-cairo.md b/docs/16-using-cairo.md index 9ece9ba3d..b3e10b6be 100644 --- a/docs/16-using-cairo.md +++ b/docs/16-using-cairo.md @@ -147,7 +147,7 @@ some examples. Here is the most simple example you can get: local cr = cairo.Context(img) -- Set a red source - cr:set_source(1, 0, 0) + cr:set_source_rgb(1, 0, 0) -- Alternative: cr:set_source(gears.color("#ff0000"))