PEAR::HTML::Progress example: Plain circle 360
Author: Laurent Laville
Description: Display a plain circle 360 degree as progress meter

examples

# Circle Plain

$Date: 2005/07/25 11:19:41 $

- Introduction
- Render options
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better (see source at line 11).

This example will display a plain circle 360 degree as new shape of progress meter.

Default circle (size:50x50) filled in natural way.

There are 10 cells with default colors :

- active-color = #006600
- inactive-color = #CCCCCC
- spacing = 0

Percent text info is right aligned on a #EEEEEE background color area of 50 pixels width, at right side of circle.

A cache system is used on lines 21 thru 29, to avoid built pictures a second times.

[Top]

## Render options

    background-color = #EEEEEE

HTML_Progress_UI::setStringAttributes()

    background-color = #EEEEEE
    spacing          = 0
    width            = 50
    height           = 50

HTML_Progress_UI::setCellAttributes()

[Top]

## Output

### Screenshots

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]