Examples TOCexamples

Ellipse

$Date: 2004/08/10 18:12:46 $

 Table of contents

Introduction

This example requires :


This example will run a ellipse (size:200x100) filled in natural way.

Percent text info is right aligned on a 100 pixels width area, at right side of progress shape.

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

[Top]

 Render options

Here are options to build this progress bar string (percent text info):
font-size = 20
width     = 100
HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :
width          = 200
height         = 100
spacing        = 0
inactive-color = red
active-color   = navy
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]