Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

Coloring Shapes

You may have noticed that I've specified colors so far using words like "red", "blue", "green", and so on. In fact, there are three ways to specify colors in VML:

  • Using a predefined color name: fillcolor="red"

  • Using the rgb function: fillcolor="rgb(255,0,0)"

  • Specifying a direct value: fillcolor="#FF0000"

You can use the HTML 4.0 predefined color names in VML:

  • aqua

  • black

  • blue

  • fuchsia

  • gray

  • green

  • lime

  • maroon

  • navy

  • olive

  • purple

  • red

  • silver

  • teal

  • white

  • yellow

You can also specify colors by giving the red, green, and blue color values in the rgb function like this: rgb(rrr, ggg, bbb), where rrr is the red color value, ggg is the green color value, and bbb is the blue color value, all of which range from 0 to 255. Or, you can give those color values directly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book