From a71a11eb77fb22cf342e005760a977895ceffacd Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 12 Mar 2018 09:26:06 -0700 Subject: [PATCH] cairo: Suggest Pango's ->color procedure. --- src/cairo/cairo.texi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/cairo/cairo.texi b/src/cairo/cairo.texi index 8065b6361..b464c318e 100644 --- a/src/cairo/cairo.texi +++ b/src/cairo/cairo.texi @@ -217,16 +217,10 @@ Colors are floating-vectors containing four flonums between 0. and @code{#[floating-vector 42 0. 1. 0. 1.]} represents completely opaque green. -Colors can also be specified with a string: -@itemize -@item A standard color name (per the Cascading Style Sheets standard). -@item A hex value: 'RGB', 'RRGGBB', 'RRRGGGBBB', or 'RRRRGGGGBBBB'. -@item An RGB color: 'rgb(R,G,B)' where R, G and B are decimal -numbers between 0 and 255 inclusive or percentages. -@item An RGBA color: 'rgba(R,G,B,A)' where R, G and B are numbers or -percentages as above, and A is a floating point number between 0. and -1. inclusive. -@end itemize +Colors can also be created by Pango's @code{->color} procedure +when applied to a string in a number of formats, e.g. @code{"blue"} or +@code{"#00F"} or @code{"rgba(0,0,100%,1)"}. +@xref{->color, , , pango, Pango Plugin Manual}. @node Cairo Surface, Cairo Pattern, Cairo Context, API Reference @section Cairo Surface -- 2.25.1