Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_color_name_to_rgb(3)				       al_color_name_to_rgb(3)

NAME
       al_color_name_to_rgb - Allegro 5	API

SYNOPSIS
	      #include <allegro5/allegro_color.h>

	      bool al_color_name_to_rgb(char const *name, float	*r, float *g, float *b)

DESCRIPTION
       Parameters:

       o name -	The (lowercase)	name of	the color.

       o r,  g,	 b - If	one of the recognized color names below	is passed, the
	 corresponding RGB values in the range 0..1 are	written.

       The recognized names are:

	      aliceblue, antiquewhite, aqua, aquamarine, azure,	beige, bisque,
	      black,   blanchedalmond,	blue,  blueviolet,  brown,  burlywood,
	      cadetblue, chartreuse, chocolate,	coral,	cornflowerblue,	 corn-
	      silk,  crimson,  cyan,  darkblue,	darkcyan, darkgoldenrod, dark-
	      gray, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkor-
	      ange,  darkorchid, darkred, darksalmon, darkseagreen, darkslate-
	      blue, darkslategray, darkturquoise, darkviolet, deeppink,	 deep-
	      skyblue,	dimgray,  dodgerblue,  firebrick, floralwhite, forest-
	      green, fuchsia, gainsboro, ghostwhite,  goldenrod,  gold,	 gray,
	      green, greenyellow, honeydew, hotpink, indianred,	indigo,	ivory,
	      khaki, lavenderblush, lavender, lawngreen, lemonchiffon,	light-
	      blue,  lightcoral,  lightcyan, lightgoldenrodyellow, lightgreen,
	      lightgrey, lightpink, lightsalmon, lightseagreen,	 lightskyblue,
	      lightslategray,  lightsteelblue,	lightyellow,  lime, limegreen,
	      linen, magenta,  maroon,	mediumaquamarine,  mediumblue,	mediu-
	      morchid,	mediumpurple, mediumseagreen, mediumslateblue, medium-
	      springgreen,  mediumturquoise,  mediumvioletred,	 midnightblue,
	      mintcream,   mistyrose,  moccasin,  avajowhite,  navy,  oldlace,
	      olive,  olivedrab,  orange,  orangered,  orchid,	palegoldenrod,
	      palegreen,  paleturquoise, palevioletred,	papayawhip, peachpuff,
	      peru, pink, plum,	powderblue, purple, purwablue, red, rosybrown,
	      royalblue,  saddlebrown, salmon, sandybrown, seagreen, seashell,
	      sienna, silver, skyblue,	slateblue,  slategray,	snow,  spring-
	      green, steelblue,	tan, teal, thistle, tomato, turquoise, violet,
	      wheat, white, whitesmoke,	yellow,	yellowgreen

       They	 are	  taken	     from	<http://www.w3.org/TR/2010/PR-
       css3-color-20101028/#svg-color>.

       Returns:	true if	a name from the	list above was passed, else false.

SEE ALSO
       al_color_name(3)

Allegro	reference manual			       al_color_name_to_rgb(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=al_color_name_to_rgb&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help