ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

filled_circle

Summary

Creates a filled circle.

Usage

pdf( filled_circle, hash( radius, circle_radius, 
                          x,      x_position,
                          y,      y_position,
                        [ rgb,    rgb_color, ]
                        [ cmyk,   cmyk_color ] ) )

Parameters

NameTypeDescriptionRequired
radius integer The radius of the circle. Yes.
x integer The x position of the circle placement. Yes.
y integer The y position of the circle placement. Yes.
rgb array The RGB color of the circle. Only if the "cmyk" parameter is omitted.
cmyk array The CMYK color of the circle. Only if the "rgb" parameter is omitted.

Description

This function creates a filled circle with a given radius and color. The position of the circle is specified with the "x" and "y" parameters. The given coordinate must be within the page margins. The lower-left corner is at (0,0).

Examples

Example 1

{pdf( 'new_page' )}
 
{pdf( 'filled_circle', hash( 'radius', 100,
                             'x',      300,
                             'y',      400,
                             'rgb',    array( 0, 0, 0 ) ) )}
 
{pdf( 'filled_circle', hash( 'radius', 98,
                             'x',      300,
                             'y',      400,
                             'rgb',    array( 255, 0, 0 ) ) )}

This example creates a black circle with red filling on a new page.

Balazs Halasy (14/05/2004 11:52 am)

Balazs Halasy (04/05/2005 1:12 pm)


Comments

There are no comments.