Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

egd(3erl) [linux man page]

egd(3erl)						     Erlang Module Definition							 egd(3erl)

NAME
egd - egd - erlang graphical drawer. DESCRIPTION
egd - erlang graphical drawer DATA TYPES
color() : egd_image() : font() : point() = {integer(), integer()} : render_option() = {render_engine, opaque} | {render_engine, alpha} : EXPORTS
color(Color::Value | Name) -> color() Types Value = {byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} Name = black | silver | gray | white | maroon | red | purple | fuchia | green | lime | olive | yellow | navy | blue | teal | aqua Creates a color reference. create(Width::integer(), Height::integer()) -> egd_image() Creates an image area and returns its reference. destroy(Image::egd_image()) -> ok Destroys the image. filledEllipse(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok Creates a filled ellipse object. filledRectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok Creates a filled rectangle object. line(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok Creates a line object from P1 to P2 in the image. rectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok Creates a rectangle object. render(Image::egd_image()) -> binary() Equivalent to render(Image, png, [{render_engine, opaque}]) . render(Image::egd_image(), Type::png | raw_bitmap) -> binary() Equivalent to render(Image, Type, [{render_engine, opaque}]) . render(Image::egd_image(), Type::png | raw_bitmap, Options::[render_option()]) -> binary() Renders a binary from the primitives specified by egd_image(). The binary can either be a raw bitmap with rgb tripplets or a binary in png format. save(Binary::binary(), Filename::string()) -> ok Saves the binary to file. text(Image::egd_image(), P::point(), Font::font(), Text::string(), Color::color()) -> ok Creates a text object. AUTHORS
<> percept 0.8.5 egd(3erl)

Check Out this Related Man Page

SDL::Color(3)						User Contributed Perl Documentation					     SDL::Color(3)

NAME
SDL::Color - a SDL perl extension SYNOPSIS
$color = new SDL::Color ( -r => 0xde, -g => 0xad, -b =>c0 ); $color = new SDL::Color -surface => $app, -pixel => $app->pixel($x,$y); $color = new SDL::Color -color => SDL::NewColor(0xff,0xaa,0xdd); DESCRIPTION
"SDL::Color" is a wrapper for display format independent color representations, with the same interface as SDL::Color. new ( -color => ) "SDL::Color::new" with a "-color" option will construct a new object referencing the passed SDL_Color*. new (-r => , -g => , -b => ) "SDL::Color::new" with "-r,-g,-b" options will construct both a SDL_Color structure, and the associated object with the specified vales. new (-pixel =>, -surface =>) "SDL::Color::new" with "-pixel,-surface" options will generate a SDL_Color* with the r,g,b values associated with the integer value passed by "-pixel" for the given "-surface"'s format. r ( [ red ] ), g( [ green ] ), b( [ blue ] ) "SDL::Color::r, SDL::Color::g, SDL::Color::b" are accessor methods for the red, green, and blue components respectively. The color value can be set by passing a byte value (0-255) to each function. pixel ( surface ) "SDL::Color::pixel" takes a "SDL::Surface" object and r,g,b values, and returns the integer representation of the closest color for the given surface. AUTHOR
David J. Goehrig SEE ALSO
perl SDL::Surface perl v5.12.1 2010-07-05 SDL::Color(3)
Man Page