Docs: Fix code example for cairo usage. (#3295)

This commit is contained in:
Jonas Belouadi 2021-03-22 23:05:46 +01:00 committed by GitHub
parent d583129eb6
commit ce5196424e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ some examples. Here is the most simple example you can get:
local cr = cairo.Context(img) local cr = cairo.Context(img)
-- Set a red source -- Set a red source
cr:set_source(1, 0, 0) cr:set_source_rgb(1, 0, 0)
-- Alternative: -- Alternative:
cr:set_source(gears.color("#ff0000")) cr:set_source(gears.color("#ff0000"))