Closes #2054.
doc/info/Makefile
doc/schema/Makefile
!dot.demo/Makefile
-!lib/inkpot/test/Makefile
!rtest2/Makefile
!windows/build/Makefile
!windows/prebuild/Makefile
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories=""C:\gtk\lib\glib-2.0\include";"C:\gtk\include\glib-2.0";"C:\gtk\include\pango-1.0\";C:\gtk\include\cairo;C:\gtk\include\freetype2;C:\gtk\include;"$(SolutionDir)/libltdl";"$(SolutionDir)/lib/neatogen";"$(SolutionDir)/windows/lib/cdt";"$(SolutionDir)/";"$(SolutionDir)/lib/vpsc";"$(SolutionDir)/lib/vmalloc";"$(SolutionDir)/lib/twopigen";"$(SolutionDir)/lib/sparse";"$(SolutionDir)/lib/sfio";"$(SolutionDir)/lib/sfpdpgen";"$(SolutionDir)/lib/rbtree";"$(SolutionDir)/lib/pathplan";"$(SolutionDir)/lib/patchwork";"$(SolutionDir)/lib/pack";"$(SolutionDir)/lib/ortho";"$(SolutionDir)/lib/inkpot";"$(SolutionDir)/lib/ingraphs";"$(SolutionDir)/lib/gd";"$(SolutionDir)/lib/filter";"$(SolutionDir)/lib/fdpgen";"$(SolutionDir)/lib/expr";"$(SolutionDir)/lib/dotgen";"$(SolutionDir)/lib/circogen";"$(SolutionDir)/lib/ast";"$(SolutionDir)/lib/agraph";"$(SolutionDir)/lib/common";"$(SolutionDir)/lib/gvc";"$(SolutionDir)/lib/cdt";"$(SolutionDir)/lib/cgraph""
+ AdditionalIncludeDirectories=""C:\gtk\lib\glib-2.0\include";"C:\gtk\include\glib-2.0";"C:\gtk\include\pango-1.0\";C:\gtk\include\cairo;C:\gtk\include\freetype2;C:\gtk\include;"$(SolutionDir)/libltdl";"$(SolutionDir)/lib/neatogen";"$(SolutionDir)/windows/lib/cdt";"$(SolutionDir)/";"$(SolutionDir)/lib/vpsc";"$(SolutionDir)/lib/vmalloc";"$(SolutionDir)/lib/twopigen";"$(SolutionDir)/lib/sparse";"$(SolutionDir)/lib/sfio";"$(SolutionDir)/lib/sfpdpgen";"$(SolutionDir)/lib/rbtree";"$(SolutionDir)/lib/pathplan";"$(SolutionDir)/lib/patchwork";"$(SolutionDir)/lib/pack";"$(SolutionDir)/lib/ortho";"$(SolutionDir)/lib/ingraphs";"$(SolutionDir)/lib/gd";"$(SolutionDir)/lib/filter";"$(SolutionDir)/lib/fdpgen";"$(SolutionDir)/lib/expr";"$(SolutionDir)/lib/dotgen";"$(SolutionDir)/lib/circogen";"$(SolutionDir)/lib/ast";"$(SolutionDir)/lib/agraph";"$(SolutionDir)/lib/common";"$(SolutionDir)/lib/gvc";"$(SolutionDir)/lib/cdt";"$(SolutionDir)/lib/cgraph""
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_DLL;HAVE_CONFIG_H"
MinimalRebuild="true"
BasicRuntimeChecks="3"
/>
<Tool
Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""C:\gtk\lib\glib-2.0\include";"C:\gtk\include\glib-2.0";"C:\gtk\include\pango-1.0\";C:\gtk\include\cairo;C:\gtk\include\freetype2;C:\gtk\include;"$(SolutionDir)/libltdl";"$(SolutionDir)/lib/neatogen";"$(SolutionDir)/windows/lib/cdt";"$(SolutionDir)/";"$(SolutionDir)/lib/vpsc";"$(SolutionDir)/lib/vmalloc";"$(SolutionDir)/lib/twopigen";"$(SolutionDir)/lib/sparse";"$(SolutionDir)/lib/sfio";"$(SolutionDir)/lib/sfpdpgen";"$(SolutionDir)/lib/rbtree";"$(SolutionDir)/lib/pathplan";"$(SolutionDir)/lib/patchwork";"$(SolutionDir)/lib/pack";"$(SolutionDir)/lib/ortho";"$(SolutionDir)/lib/inkpot";"$(SolutionDir)/lib/ingraphs";"$(SolutionDir)/lib/gd";"$(SolutionDir)/lib/filter";"$(SolutionDir)/lib/fdpgen";"$(SolutionDir)/lib/expr";"$(SolutionDir)/lib/dotgen";"$(SolutionDir)/lib/circogen";"$(SolutionDir)/lib/ast";"$(SolutionDir)/lib/agraph";"$(SolutionDir)/lib/common";"$(SolutionDir)/lib/gvc";"$(SolutionDir)/lib/cdt";"$(SolutionDir)/lib/cgraph""
+ AdditionalIncludeDirectories=""C:\gtk\lib\glib-2.0\include";"C:\gtk\include\glib-2.0";"C:\gtk\include\pango-1.0\";C:\gtk\include\cairo;C:\gtk\include\freetype2;C:\gtk\include;"$(SolutionDir)/libltdl";"$(SolutionDir)/lib/neatogen";"$(SolutionDir)/windows/lib/cdt";"$(SolutionDir)/";"$(SolutionDir)/lib/vpsc";"$(SolutionDir)/lib/vmalloc";"$(SolutionDir)/lib/twopigen";"$(SolutionDir)/lib/sparse";"$(SolutionDir)/lib/sfio";"$(SolutionDir)/lib/sfpdpgen";"$(SolutionDir)/lib/rbtree";"$(SolutionDir)/lib/pathplan";"$(SolutionDir)/lib/patchwork";"$(SolutionDir)/lib/pack";"$(SolutionDir)/lib/ortho";"$(SolutionDir)/lib/ingraphs";"$(SolutionDir)/lib/gd";"$(SolutionDir)/lib/filter";"$(SolutionDir)/lib/fdpgen";"$(SolutionDir)/lib/expr";"$(SolutionDir)/lib/dotgen";"$(SolutionDir)/lib/circogen";"$(SolutionDir)/lib/ast";"$(SolutionDir)/lib/agraph";"$(SolutionDir)/lib/common";"$(SolutionDir)/lib/gvc";"$(SolutionDir)/lib/cdt";"$(SolutionDir)/lib/cgraph""
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_DLL;HAVE_CONFIG_H"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
+++ /dev/null
-## Process this file with automake to produce Makefile.in
-
-INKPOT_VERSION="1:0:0"
-
-pdfdir = $(pkgdatadir)/doc/pdf
-pkgconfigdir = $(libdir)/pkgconfig
-
-AM_CPPFLAGS = -I$(top_srcdir)/lib
-
-pkginclude_HEADERS = inkpot.h
-lib_LTLIBRARIES = libinkpot.la
-pkgconfig_DATA = libinkpot.pc
-bin_PROGRAMS = inkpot
-
-noinst_HEADERS = inkpot_scheme.h inkpot_xlate.h inkpot_value.h \
- inkpot_lib_define.h inkpot_lib_value.h \
- inkpot_lib_scheme.h inkpot_lib_string.h
-noinst_LTLIBRARIES = libinkpot_C.la
-
-man_MANS = inkpot.3 inkpot.1
-if ENABLE_MAN_PDFS
-pdf_DATA = inkpot.3.pdf inkpot.1.pdf
-
-if HAVE_PS2PDF
-pdf = $(pdf_DATA)
-else
-pdf = ERROR_NO_PS2PDF
-endif
-else
-pdf =
-endif
-
-inkpot_SOURCES = inkpot.c
-inkpot_LDADD = $(top_builddir)/lib/inkpot/libinkpot.la
-
-libinkpot_C_la_SOURCES = inkpot_scheme.c inkpot_value.c inkpot_xlate.c
-libinkpot_C_la_LIBADD = $(top_builddir)/lib/rbtree/librbtree_C.la
-libinkpot_C_la_DEPENDENCIES = $(top_builddir)/lib/rbtree/librbtree_C.la
-
-libinkpot_la_SOURCES = $(libinkpot_C_la_SOURCES)
-libinkpot_la_LIBADD = $(libinkpot_C_la_LIBADD)
-libinkpot_la_LDFLAGS = -version-info $(INKPOT_VERSION) -no-undefined
-
-
-inkpot_scheme.o inkpot_scheme.lo: inkpot_lib_define.h \
- inkpot_lib_scheme.h \
- inkpot_lib_string.h
-
-inkpot_value.o inkpot_value.lo: inkpot_lib_define.h \
- inkpot_lib_value.h
-
-inkpot_lib_value.h: inkpot_lib_define.h
-
-inkpot_lib_scheme.h: inkpot_lib_define.h
-
-inkpot_lib_string.h: inkpot_lib_define.h
-
-inkpot_lib_define.h: inkpot_lib.tcl inkpot_lib_procs.tcl \
- $(top_builddir)/lib/inkpot/inkpot_lib_tk.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_svg.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_x11.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_brewer.dat
- $(TCLSH) inkpot_lib.tcl \
- $(top_builddir)/lib/inkpot/inkpot_lib_tk.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_svg.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_x11.dat \
- $(top_builddir)/lib/inkpot/inkpot_lib_brewer.dat
-
-$(top_builddir)/lib/inkpot/inkpot_lib_x11.dat: inkpot_lib_x11.tcl data/rgb.txt
- $(TCLSH) inkpot_lib_x11.tcl data/rgb.txt
-
-$(top_builddir)/lib/inkpot/inkpot_lib_svg.dat: inkpot_lib_svg.tcl data/types.html
- $(TCLSH) inkpot_lib_svg.tcl data/types.html
-
-$(top_builddir)/lib/inkpot/inkpot_lib_tk.dat: inkpot_lib_tk.tcl data/xcolors.c
- $(TCLSH) inkpot_lib_tk.tcl data/xcolors.c
-
-$(top_builddir)/lib/inkpot/inkpot_lib_brewer.dat: inkpot_lib_brewer.tcl data/brewer_colors
- $(TCLSH) inkpot_lib_brewer.tcl data/brewer_colors
-
-if ENABLE_MAN_PDFS
-if HAVE_PS2PDF
-inkpot.1.pdf: inkpot.1.ps
- @PS2PDF@ $<
-
-inkpot.1.ps: inkpot.1
- @GROFF@ -Tps -man $< >$@
-
-inkpot.3.pdf: inkpot.3.ps
- @PS2PDF@ $<
-
-inkpot.3.ps: inkpot.3
- @GROFF@ -Tps -man $< >$@
-endif
-endif
-
-CLEANFILES = inkpot_lib_*.dat
-
-EXTRA_DIST = $(man_MANS) $(pdf) *.tcl data/* \
- inkpot_lib_define.h inkpot_lib_value.h inkpot_lib_scheme.h inkpot_lib_string.h
-
-DISTCLEANFILES = $(pdf) \
- inkpot_lib_define.h inkpot_lib_value.h inkpot_lib_scheme.h inkpot_lib_string.h \
- inkpot.1.ps inkpot.3.ps
+++ /dev/null
-These files were obtained from:
-
-x11: rgb.txt
- xorg-x11-server-utils-7.4-3.fc10.x86_64.rpm
- /usr/share/X11/rgb.txt
-
-svg: types.html
- http://www.w3.org/TR/SVG/types.html
-
- brewer_color : ?
-
-tk: xcolors.c
- tk-8.5.3-4.fc10.src.rpm
- tk8.5.3/xlib/xcolors.c
-
+++ /dev/null
-# Apache-Style Software License for ColorBrewer software and ColorBrewer
-# Color Schemes, Version 1.1
-#
-# Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania
-# State University. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# 1. Redistributions as source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-# 2. The end-user documentation included with the redistribution, if any,
-# must include the following acknowledgment:
-# This product includes color specifications and designs developed
-# by Cynthia Brewer (http://colorbrewer.org/).
-# Alternately, this acknowledgment may appear in the software itself, if and
-# wherever such third-party acknowledgments normally appear.
-# 4. The name "ColorBrewer" must not be used to endorse or promote products
-# derived from this software without prior written permission. For written
-# permission, please contact Cynthia Brewer at cbrewer@psu.edu.
-# 5. Products derived from this software may not be called "ColorBrewer", nor
-# may "ColorBrewer" appear in their name, without prior written permission
-# of Cynthia Brewer.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CYNTHIA
-# BREWER, MARK HARROWER, OR THE PENNSYLVANIA STATE UNIVERSITY BE LIABLE FOR
-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Fields per record line:
-# "ColorName","NumOfColors","Type","CritVal","ColorNum","ColorLetter","R","G","B","SchemeType"
-#
-"accent",3,"qual",,1,"a",127,201,127,"qualitative"
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-"accent",4,"qual",,1,"a",127,201,127,
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-,,,,4,"d",255,255,153,
-"accent",5,"qual",,1,"a",127,201,127,
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-,,,,4,"d",255,255,153,
-,,,,5,"e",56,108,176,
-"accent",6,"qual",,1,"a",127,201,127,
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-,,,,4,"d",255,255,153,
-,,,,5,"e",56,108,176,
-,,,,6,"f",240,2,127,
-"accent",7,"qual",,1,"a",127,201,127,
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-,,,,4,"d",255,255,153,
-,,,,5,"e",56,108,176,
-,,,,6,"f",240,2,127,
-,,,,7,"g",191,91,23,
-"accent",8,"qual",,1,"a",127,201,127,
-,,,,2,"b",190,174,212,
-,,,,3,"c",253,192,134,
-,,,,4,"d",255,255,153,
-,,,,5,"e",56,108,176,
-,,,,6,"f",240,2,127,
-,,,,7,"g",191,91,23,
-,,,,8,"h",102,102,102,
-"blues",3,"seq",,1,"c",222,235,247,"sequential"
-,,,,2,"f",158,202,225,
-,,,,3,"i",49,130,189,
-"blues",4,"seq",,1,"b",239,243,255,
-,,,,2,"e",189,215,231,
-,,,,3,"g",107,174,214,
-,,,,4,"j",33,113,181,
-"blues",5,"seq",,1,"b",239,243,255,
-,,,,2,"e",189,215,231,
-,,,,3,"g",107,174,214,
-,,,,4,"i",49,130,189,
-,,,,5,"k",8,81,156,
-"blues",6,"seq",,1,"b",239,243,255,
-,,,,2,"d",198,219,239,
-,,,,3,"f",158,202,225,
-,,,,4,"g",107,174,214,
-,,,,5,"i",49,130,189,
-,,,,6,"k",8,81,156,
-"blues",7,"seq",,1,"b",239,243,255,
-,,,,2,"d",198,219,239,
-,,,,3,"f",158,202,225,
-,,,,4,"g",107,174,214,
-,,,,5,"h",66,146,198,
-,,,,6,"j",33,113,181,
-,,,,7,"l",8,69,148,
-"blues",8,"seq",,1,"a",247,251,255,
-,,,,2,"c",222,235,247,
-,,,,3,"d",198,219,239,
-,,,,4,"f",158,202,225,
-,,,,5,"g",107,174,214,
-,,,,6,"h",66,146,198,
-,,,,7,"j",33,113,181,
-,,,,8,"l",8,69,148,
-"blues",9,"seq",,1,"a",247,251,255,
-,,,,2,"c",222,235,247,
-,,,,3,"d",198,219,239,
-,,,,4,"f",158,202,225,
-,,,,5,"g",107,174,214,
-,,,,6,"h",66,146,198,
-,,,,7,"j",33,113,181,
-,,,,8,"k",8,81,156,
-,,,,9,"m",8,48,107,
-"brbg",3,"div",2,1,"e",216,179,101,"diverging"
-,,,,2,"h",245,245,245,
-,,,,3,"k",90,180,172,
-"brbg",4,"div",2.5,1,"c",166,97,26,
-,,,,2,"f",223,194,125,
-,,,,3,"j",128,205,193,
-,,,,4,"m",1,133,113,
-"brbg",5,"div",3,1,"c",166,97,26,
-,,,,2,"f",223,194,125,
-,,,,3,"h",245,245,245,
-,,,,4,"j",128,205,193,
-,,,,5,"m",1,133,113,
-"brbg",6,"div",3.5,1,"b",140,81,10,
-,,,,2,"e",216,179,101,
-,,,,3,"g",246,232,195,
-,,,,4,"i",199,234,229,
-,,,,5,"k",90,180,172,
-,,,,6,"n",1,102,94,
-"brbg",7,"div",4,1,"b",140,81,10,
-,,,,2,"e",216,179,101,
-,,,,3,"g",246,232,195,
-,,,,4,"h",245,245,245,
-,,,,5,"i",199,234,229,
-,,,,6,"k",90,180,172,
-,,,,7,"n",1,102,94,
-"brbg",8,"div",4.5,1,"b",140,81,10,
-,,,,2,"d",191,129,45,
-,,,,3,"f",223,194,125,
-,,,,4,"g",246,232,195,
-,,,,5,"i",199,234,229,
-,,,,6,"j",128,205,193,
-,,,,7,"l",53,151,143,
-,,,,8,"n",1,102,94,
-"brbg",9,"div",5,1,"b",140,81,10,
-,,,,2,"d",191,129,45,
-,,,,3,"f",223,194,125,
-,,,,4,"g",246,232,195,
-,,,,5,"h",245,245,245,
-,,,,6,"i",199,234,229,
-,,,,7,"j",128,205,193,
-,,,,8,"l",53,151,143,
-,,,,9,"n",1,102,94,
-"brbg",10,"div",5.5,1,"a",84,48,5,
-,,,,2,"b",140,81,10,
-,,,,3,"d",191,129,45,
-,,,,4,"f",223,194,125,
-,,,,5,"g",246,232,195,
-,,,,6,"i",199,234,229,
-,,,,7,"j",128,205,193,
-,,,,8,"l",53,151,143,
-,,,,9,"n",1,102,94,
-,,,,10,"o",0,60,48,
-"brbg",11,"div",6,1,"a",84,48,5,
-,,,,2,"b",140,81,10,
-,,,,3,"d",191,129,45,
-,,,,4,"f",223,194,125,
-,,,,5,"g",246,232,195,
-,,,,6,"h",245,245,245,
-,,,,7,"i",199,234,229,
-,,,,8,"j",128,205,193,
-,,,,9,"l",53,151,143,
-,,,,10,"n",1,102,94,
-,,,,11,"o",0,60,48,
-"bugn",3,"seq",,1,"c",229,245,249,"sequential"
-,,,,2,"f",153,216,201,
-,,,,3,"i",44,162,95,
-"bugn",4,"seq",,1,"b",237,248,251,
-,,,,2,"e",178,226,226,
-,,,,3,"g",102,194,164,
-,,,,4,"j",35,139,69,
-"bugn",5,"seq",,1,"b",237,248,251,
-,,,,2,"e",178,226,226,
-,,,,3,"g",102,194,164,
-,,,,4,"i",44,162,95,
-,,,,5,"k",0,109,44,
-"bugn",6,"seq",,1,"b",237,248,251,
-,,,,2,"d",204,236,230,
-,,,,3,"f",153,216,201,
-,,,,4,"g",102,194,164,
-,,,,5,"i",44,162,95,
-,,,,6,"k",0,109,44,
-"bugn",7,"seq",,1,"b",237,248,251,
-,,,,2,"d",204,236,230,
-,,,,3,"f",153,216,201,
-,,,,4,"g",102,194,164,
-,,,,5,"h",65,174,118,
-,,,,6,"j",35,139,69,
-,,,,7,"l",0,88,36,
-"bugn",8,"seq",,1,"a",247,252,253,
-,,,,2,"c",229,245,249,
-,,,,3,"d",204,236,230,
-,,,,4,"f",153,216,201,
-,,,,5,"g",102,194,164,
-,,,,6,"h",65,174,118,
-,,,,7,"j",35,139,69,
-,,,,8,"l",0,88,36,
-"bugn",9,"seq",,1,"a",247,252,253,
-,,,,2,"c",229,245,249,
-,,,,3,"d",204,236,230,
-,,,,4,"f",153,216,201,
-,,,,5,"g",102,194,164,
-,,,,6,"h",65,174,118,
-,,,,7,"j",35,139,69,
-,,,,8,"k",0,109,44,
-,,,,9,"m",0,68,27,
-"bupu",3,"seq",,1,"c",224,236,244,"sequential"
-,,,,2,"f",158,188,218,
-,,,,3,"i",136,86,167,
-"bupu",4,"seq",,1,"b",237,248,251,
-,,,,2,"e",179,205,227,
-,,,,3,"g",140,150,198,
-,,,,4,"j",136,65,157,
-"bupu",5,"seq",,1,"b",237,248,251,
-,,,,2,"e",179,205,227,
-,,,,3,"g",140,150,198,
-,,,,4,"i",136,86,167,
-,,,,5,"k",129,15,124,
-"bupu",6,"seq",,1,"b",237,248,251,
-,,,,2,"d",191,211,230,
-,,,,3,"f",158,188,218,
-,,,,4,"g",140,150,198,
-,,,,5,"i",136,86,167,
-,,,,6,"k",129,15,124,
-"bupu",7,"seq",,1,"b",237,248,251,
-,,,,2,"d",191,211,230,
-,,,,3,"f",158,188,218,
-,,,,4,"g",140,150,198,
-,,,,5,"h",140,107,177,
-,,,,6,"j",136,65,157,
-,,,,7,"l",110,1,107,
-"bupu",8,"seq",,1,"a",247,252,253,
-,,,,2,"c",224,236,244,
-,,,,3,"d",191,211,230,
-,,,,4,"f",158,188,218,
-,,,,5,"g",140,150,198,
-,,,,6,"h",140,107,177,
-,,,,7,"j",136,65,157,
-,,,,8,"l",110,1,107,
-"bupu",9,"seq",,1,"a",247,252,253,
-,,,,2,"c",224,236,244,
-,,,,3,"d",191,211,230,
-,,,,4,"f",158,188,218,
-,,,,5,"g",140,150,198,
-,,,,6,"h",140,107,177,
-,,,,7,"j",136,65,157,
-,,,,8,"k",129,15,124,
-,,,,9,"m",77,0,75,
-"dark2",3,"qual",,1,"a",27,158,119,"qualitative"
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-"dark2",4,"qual",,1,"a",27,158,119,
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-,,,,4,"d",231,41,138,
-"dark2",5,"qual",,1,"a",27,158,119,
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-,,,,4,"d",231,41,138,
-,,,,5,"e",102,166,30,
-"dark2",6,"qual",,1,"a",27,158,119,
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-,,,,4,"d",231,41,138,
-,,,,5,"e",102,166,30,
-,,,,6,"f",230,171,2,
-"dark2",7,"qual",,1,"a",27,158,119,
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-,,,,4,"d",231,41,138,
-,,,,5,"e",102,166,30,
-,,,,6,"f",230,171,2,
-,,,,7,"g",166,118,29,
-"dark2",8,"qual",,1,"a",27,158,119,
-,,,,2,"b",217,95,2,
-,,,,3,"c",117,112,179,
-,,,,4,"d",231,41,138,
-,,,,5,"e",102,166,30,
-,,,,6,"f",230,171,2,
-,,,,7,"g",166,118,29,
-,,,,8,"h",102,102,102,
-"gnbu",3,"seq",,1,"c",224,243,219,"sequential"
-,,,,2,"f",168,221,181,
-,,,,3,"i",67,162,202,
-"gnbu",4,"seq",,1,"b",240,249,232,
-,,,,2,"e",186,228,188,
-,,,,3,"g",123,204,196,
-,,,,4,"j",43,140,190,
-"gnbu",5,"seq",,1,"b",240,249,232,
-,,,,2,"e",186,228,188,
-,,,,3,"g",123,204,196,
-,,,,4,"i",67,162,202,
-,,,,5,"k",8,104,172,
-"gnbu",6,"seq",,1,"b",240,249,232,
-,,,,2,"d",204,235,197,
-,,,,3,"f",168,221,181,
-,,,,4,"g",123,204,196,
-,,,,5,"i",67,162,202,
-,,,,6,"k",8,104,172,
-"gnbu",7,"seq",,1,"b",240,249,232,
-,,,,2,"d",204,235,197,
-,,,,3,"f",168,221,181,
-,,,,4,"g",123,204,196,
-,,,,5,"h",78,179,211,
-,,,,6,"j",43,140,190,
-,,,,7,"l",8,88,158,
-"gnbu",8,"seq",,1,"a",247,252,240,
-,,,,2,"c",224,243,219,
-,,,,3,"d",204,235,197,
-,,,,4,"f",168,221,181,
-,,,,5,"g",123,204,196,
-,,,,6,"h",78,179,211,
-,,,,7,"j",43,140,190,
-,,,,8,"l",8,88,158,
-"gnbu",9,"seq",,1,"a",247,252,240,
-,,,,2,"c",224,243,219,
-,,,,3,"d",204,235,197,
-,,,,4,"f",168,221,181,
-,,,,5,"g",123,204,196,
-,,,,6,"h",78,179,211,
-,,,,7,"j",43,140,190,
-,,,,8,"k",8,104,172,
-,,,,9,"m",8,64,129,
-"greens",3,"seq",,1,"c",229,245,224,"sequential"
-,,,,2,"f",161,217,155,
-,,,,3,"i",49,163,84,
-"greens",4,"seq",,1,"b",237,248,233,
-,,,,2,"e",186,228,179,
-,,,,3,"g",116,196,118,
-,,,,4,"j",35,139,69,
-"greens",5,"seq",,1,"b",237,248,233,
-,,,,2,"e",186,228,179,
-,,,,3,"g",116,196,118,
-,,,,4,"i",49,163,84,
-,,,,5,"k",0,109,44,
-"greens",6,"seq",,1,"b",237,248,233,
-,,,,2,"d",199,233,192,
-,,,,3,"f",161,217,155,
-,,,,4,"g",116,196,118,
-,,,,5,"i",49,163,84,
-,,,,6,"k",0,109,44,
-"greens",7,"seq",,1,"b",237,248,233,
-,,,,2,"d",199,233,192,
-,,,,3,"f",161,217,155,
-,,,,4,"g",116,196,118,
-,,,,5,"h",65,171,93,
-,,,,6,"j",35,139,69,
-,,,,7,"l",0,90,50,
-"greens",8,"seq",,1,"a",247,252,245,
-,,,,2,"c",229,245,224,
-,,,,3,"d",199,233,192,
-,,,,4,"f",161,217,155,
-,,,,5,"g",116,196,118,
-,,,,6,"h",65,171,93,
-,,,,7,"j",35,139,69,
-,,,,8,"l",0,90,50,
-"greens",9,"seq",,1,"a",247,252,245,
-,,,,2,"c",229,245,224,
-,,,,3,"d",199,233,192,
-,,,,4,"f",161,217,155,
-,,,,5,"g",116,196,118,
-,,,,6,"h",65,171,93,
-,,,,7,"j",35,139,69,
-,,,,8,"k",0,109,44,
-,,,,9,"m",0,68,27,
-"greys",3,"seq",,1,"c",240,240,240,"sequential"
-,,,,2,"f",189,189,189,
-,,,,3,"i",99,99,99,
-"greys",4,"seq",,1,"b",247,247,247,
-,,,,2,"e",204,204,204,
-,,,,3,"g",150,150,150,
-,,,,4,"j",82,82,82,
-"greys",5,"seq",,1,"b",247,247,247,
-,,,,2,"e",204,204,204,
-,,,,3,"g",150,150,150,
-,,,,4,"i",99,99,99,
-,,,,5,"k",37,37,37,
-"greys",6,"seq",,1,"b",247,247,247,
-,,,,2,"d",217,217,217,
-,,,,3,"f",189,189,189,
-,,,,4,"g",150,150,150,
-,,,,5,"i",99,99,99,
-,,,,6,"k",37,37,37,
-"greys",7,"seq",,1,"b",247,247,247,
-,,,,2,"d",217,217,217,
-,,,,3,"f",189,189,189,
-,,,,4,"g",150,150,150,
-,,,,5,"h",115,115,115,
-,,,,6,"j",82,82,82,
-,,,,7,"l",37,37,37,
-"greys",8,"seq",,1,"a",255,255,255,
-,,,,2,"c",240,240,240,
-,,,,3,"d",217,217,217,
-,,,,4,"f",189,189,189,
-,,,,5,"g",150,150,150,
-,,,,6,"h",115,115,115,
-,,,,7,"j",82,82,82,
-,,,,8,"l",37,37,37,
-"greys",9,"seq",,1,"a",255,255,255,
-,,,,2,"c",240,240,240,
-,,,,3,"d",217,217,217,
-,,,,4,"f",189,189,189,
-,,,,5,"g",150,150,150,
-,,,,6,"h",115,115,115,
-,,,,7,"j",82,82,82,
-,,,,8,"k",37,37,37,
-,,,,9,"m",0,0,0,
-"oranges",3,"seq",,1,"c",254,230,206,"sequential"
-,,,,2,"f",253,174,107,
-,,,,3,"i",230,85,13,
-"oranges",4,"seq",,1,"b",254,237,222,
-,,,,2,"e",253,190,133,
-,,,,3,"g",253,141,60,
-,,,,4,"j",217,71,1,
-"oranges",5,"seq",,1,"b",254,237,222,
-,,,,2,"e",253,190,133,
-,,,,3,"g",253,141,60,
-,,,,4,"i",230,85,13,
-,,,,5,"k",166,54,3,
-"oranges",6,"seq",,1,"b",254,237,222,
-,,,,2,"d",253,208,162,
-,,,,3,"f",253,174,107,
-,,,,4,"g",253,141,60,
-,,,,5,"i",230,85,13,
-,,,,6,"k",166,54,3,
-"oranges",7,"seq",,1,"b",254,237,222,
-,,,,2,"d",253,208,162,
-,,,,3,"f",253,174,107,
-,,,,4,"g",253,141,60,
-,,,,5,"h",241,105,19,
-,,,,6,"j",217,72,1,
-,,,,7,"l",140,45,4,
-"oranges",8,"seq",,1,"a",255,245,235,
-,,,,2,"c",254,230,206,
-,,,,3,"d",253,208,162,
-,,,,4,"f",253,174,107,
-,,,,5,"g",253,141,60,
-,,,,6,"h",241,105,19,
-,,,,7,"j",217,72,1,
-,,,,8,"l",140,45,4,
-"oranges",9,"seq",,1,"a",255,245,235,
-,,,,2,"c",254,230,206,
-,,,,3,"d",253,208,162,
-,,,,4,"f",253,174,107,
-,,,,5,"g",253,141,60,
-,,,,6,"h",241,105,19,
-,,,,7,"j",217,72,1,
-,,,,8,"k",166,54,3,
-,,,,9,"m",127,39,4,
-"orrd",3,"seq",,1,"c",254,232,200,"sequential"
-,,,,2,"f",253,187,132,
-,,,,3,"i",227,74,51,
-"orrd",4,"seq",,1,"b",254,240,217,
-,,,,2,"e",253,204,138,
-,,,,3,"g",252,141,89,
-,,,,4,"j",215,48,31,
-"orrd",5,"seq",,1,"b",254,240,217,
-,,,,2,"e",253,204,138,
-,,,,3,"g",252,141,89,
-,,,,4,"i",227,74,51,
-,,,,5,"k",179,0,0,
-"orrd",6,"seq",,1,"b",254,240,217,
-,,,,2,"d",253,212,158,
-,,,,3,"f",253,187,132,
-,,,,4,"g",252,141,89,
-,,,,5,"i",227,74,51,
-,,,,6,"k",179,0,0,
-"orrd",7,"seq",,1,"b",254,240,217,
-,,,,2,"d",253,212,158,
-,,,,3,"f",253,187,132,
-,,,,4,"g",252,141,89,
-,,,,5,"h",239,101,72,
-,,,,6,"j",215,48,31,
-,,,,7,"l",153,0,0,
-"orrd",8,"seq",,1,"a",255,247,236,
-,,,,2,"c",254,232,200,
-,,,,3,"d",253,212,158,
-,,,,4,"f",253,187,132,
-,,,,5,"g",252,141,89,
-,,,,6,"h",239,101,72,
-,,,,7,"j",215,48,31,
-,,,,8,"l",153,0,0,
-"orrd",9,"seq",,1,"a",255,247,236,
-,,,,2,"c",254,232,200,
-,,,,3,"d",253,212,158,
-,,,,4,"f",253,187,132,
-,,,,5,"g",252,141,89,
-,,,,6,"h",239,101,72,
-,,,,7,"j",215,48,31,
-,,,,8,"k",179,0,0,
-,,,,9,"m",127,0,0,
-"paired",3,"qual",,1,"a",166,206,227,"qualitative"
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-"paired",4,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-"paired",5,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-"paired",6,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-"paired",7,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-"paired",8,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-,,,,8,"h",255,127,0,
-"paired",9,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-,,,,8,"h",255,127,0,
-,,,,9,"i",202,178,214,
-"paired",10,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-,,,,8,"h",255,127,0,
-,,,,9,"i",202,178,214,
-,,,,10,"j",106,61,154,
-"paired",11,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-,,,,8,"h",255,127,0,
-,,,,9,"i",202,178,214,
-,,,,10,"j",106,61,154,
-,,,,11,"k",255,255,153,
-"paired",12,"qual",,1,"a",166,206,227,
-,,,,2,"b",31,120,180,
-,,,,3,"c",178,223,138,
-,,,,4,"d",51,160,44,
-,,,,5,"e",251,154,153,
-,,,,6,"f",227,26,28,
-,,,,7,"g",253,191,111,
-,,,,8,"h",255,127,0,
-,,,,9,"i",202,178,214,
-,,,,10,"j",106,61,154,
-,,,,11,"k",255,255,153,
-,,,,12,"l",177,89,40,
-"pastel1",3,"qual",,1,"a",251,180,174,"qualitative"
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-"pastel1",4,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-"pastel1",5,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-,,,,5,"e",254,217,166,
-"pastel1",6,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-,,,,5,"e",254,217,166,
-,,,,6,"f",255,255,204,
-"pastel1",7,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-,,,,5,"e",254,217,166,
-,,,,6,"f",255,255,204,
-,,,,7,"g",229,216,189,
-"pastel1",8,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-,,,,5,"e",254,217,166,
-,,,,6,"f",255,255,204,
-,,,,7,"g",229,216,189,
-,,,,8,"h",253,218,236,
-"pastel1",9,"qual",,1,"a",251,180,174,
-,,,,2,"b",179,205,227,
-,,,,3,"c",204,235,197,
-,,,,4,"d",222,203,228,
-,,,,5,"e",254,217,166,
-,,,,6,"f",255,255,204,
-,,,,7,"g",229,216,189,
-,,,,8,"h",253,218,236,
-,,,,9,"i",242,242,242,
-"pastel2",3,"qual",,1,"a",179,226,205,"qualitative"
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-"pastel2",4,"qual",,1,"a",179,226,205,
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-,,,,4,"d",244,202,228,
-"pastel2",5,"qual",,1,"a",179,226,205,
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-,,,,4,"d",244,202,228,
-,,,,5,"e",230,245,201,
-"pastel2",6,"qual",,1,"a",179,226,205,
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-,,,,4,"d",244,202,228,
-,,,,5,"e",230,245,201,
-,,,,6,"f",255,242,174,
-"pastel2",7,"qual",,1,"a",179,226,205,
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-,,,,4,"d",244,202,228,
-,,,,5,"e",230,245,201,
-,,,,6,"f",255,242,174,
-,,,,7,"g",241,226,204,
-"pastel2",8,"qual",,1,"a",179,226,205,
-,,,,2,"b",253,205,172,
-,,,,3,"c",203,213,232,
-,,,,4,"d",244,202,228,
-,,,,5,"e",230,245,201,
-,,,,6,"f",255,242,174,
-,,,,7,"g",241,226,204,
-,,,,8,"h",204,204,204,
-"piyg",3,"div",2,1,"e",233,163,201,"diverging"
-,,,,2,"h",247,247,247,
-,,,,3,"k",161,215,106,
-"piyg",4,"div",2.5,1,"c",208,28,139,
-,,,,2,"f",241,182,218,
-,,,,3,"j",184,225,134,
-,,,,4,"m",77,172,38,
-"piyg",5,"div",3,1,"c",208,28,139,
-,,,,2,"f",241,182,218,
-,,,,3,"h",247,247,247,
-,,,,4,"j",184,225,134,
-,,,,5,"m",77,172,38,
-"piyg",6,"div",3.5,1,"b",197,27,125,
-,,,,2,"e",233,163,201,
-,,,,3,"g",253,224,239,
-,,,,4,"i",230,245,208,
-,,,,5,"k",161,215,106,
-,,,,6,"n",77,146,33,
-"piyg",7,"div",4,1,"b",197,27,125,
-,,,,2,"e",233,163,201,
-,,,,3,"g",253,224,239,
-,,,,4,"h",247,247,247,
-,,,,5,"i",230,245,208,
-,,,,6,"k",161,215,106,
-,,,,7,"n",77,146,33,
-"piyg",8,"div",4.5,1,"b",197,27,125,
-,,,,2,"d",222,119,174,
-,,,,3,"f",241,182,218,
-,,,,4,"g",253,224,239,
-,,,,5,"i",230,245,208,
-,,,,6,"j",184,225,134,
-,,,,7,"l",127,188,65,
-,,,,8,"n",77,146,33,
-"piyg",9,"div",5,1,"b",197,27,125,
-,,,,2,"d",222,119,174,
-,,,,3,"f",241,182,218,
-,,,,4,"g",253,224,239,
-,,,,5,"h",247,247,247,
-,,,,6,"i",230,245,208,
-,,,,7,"j",184,225,134,
-,,,,8,"l",127,188,65,
-,,,,9,"n",77,146,33,
-"piyg",10,"div",5.5,1,"a",142,1,82,
-,,,,2,"b",197,27,125,
-,,,,3,"d",222,119,174,
-,,,,4,"f",241,182,218,
-,,,,5,"g",253,224,239,
-,,,,6,"i",230,245,208,
-,,,,7,"j",184,225,134,
-,,,,8,"l",127,188,65,
-,,,,9,"n",77,146,33,
-,,,,10,"o",39,100,25,
-"piyg",11,"div",6,1,"a",142,1,82,
-,,,,2,"b",197,27,125,
-,,,,3,"d",222,119,174,
-,,,,4,"f",241,182,218,
-,,,,5,"g",253,224,239,
-,,,,6,"h",247,247,247,
-,,,,7,"i",230,245,208,
-,,,,8,"j",184,225,134,
-,,,,9,"l",127,188,65,
-,,,,10,"n",77,146,33,
-,,,,11,"o",39,100,25,
-"prgn",3,"div",2,1,"e",175,141,195,"diverging"
-,,,,2,"h",247,247,247,
-,,,,3,"k",127,191,123,
-"prgn",4,"div",2.5,1,"c",123,50,148,
-,,,,2,"f",194,165,207,
-,,,,3,"j",166,219,160,
-,,,,4,"m",0,136,55,
-"prgn",5,"div",3,1,"c",123,50,148,
-,,,,2,"f",194,165,207,
-,,,,3,"h",247,247,247,
-,,,,4,"j",166,219,160,
-,,,,5,"m",0,136,55,
-"prgn",6,"div",3.5,1,"b",118,42,131,
-,,,,2,"e",175,141,195,
-,,,,3,"g",231,212,232,
-,,,,4,"i",217,240,211,
-,,,,5,"k",127,191,123,
-,,,,6,"n",27,120,55,
-"prgn",7,"div",4,1,"b",118,42,131,
-,,,,2,"e",175,141,195,
-,,,,3,"g",231,212,232,
-,,,,4,"h",247,247,247,
-,,,,5,"i",217,240,211,
-,,,,6,"k",127,191,123,
-,,,,7,"n",27,120,55,
-"prgn",8,"div",4.5,1,"b",118,42,131,
-,,,,2,"d",153,112,171,
-,,,,3,"f",194,165,207,
-,,,,4,"g",231,212,232,
-,,,,5,"i",217,240,211,
-,,,,6,"j",166,219,160,
-,,,,7,"l",90,174,97,
-,,,,8,"n",27,120,55,
-"prgn",9,"div",5,1,"b",118,42,131,
-,,,,2,"d",153,112,171,
-,,,,3,"f",194,165,207,
-,,,,4,"g",231,212,232,
-,,,,5,"h",247,247,247,
-,,,,6,"i",217,240,211,
-,,,,7,"j",166,219,160,
-,,,,8,"l",90,174,97,
-,,,,9,"n",27,120,55,
-"prgn",10,"div",5.5,1,"a",64,0,75,
-,,,,2,"b",118,42,131,
-,,,,3,"d",153,112,171,
-,,,,4,"f",194,165,207,
-,,,,5,"g",231,212,232,
-,,,,6,"i",217,240,211,
-,,,,7,"j",166,219,160,
-,,,,8,"l",90,174,97,
-,,,,9,"n",27,120,55,
-,,,,10,"o",0,68,27,
-"prgn",11,"div",6,1,"a",64,0,75,
-,,,,2,"b",118,42,131,
-,,,,3,"d",153,112,171,
-,,,,4,"f",194,165,207,
-,,,,5,"g",231,212,232,
-,,,,6,"h",247,247,247,
-,,,,7,"i",217,240,211,
-,,,,8,"j",166,219,160,
-,,,,9,"l",90,174,97,
-,,,,10,"n",27,120,55,
-,,,,11,"o",0,68,27,
-"pubu",3,"seq",,1,"c",236,231,242,"sequential"
-,,,,2,"f",166,189,219,
-,,,,3,"i",43,140,190,
-"pubu",4,"seq",,1,"b",241,238,246,
-,,,,2,"e",189,201,225,
-,,,,3,"g",116,169,207,
-,,,,4,"j",5,112,176,
-"pubu",5,"seq",,1,"b",241,238,246,
-,,,,2,"e",189,201,225,
-,,,,3,"g",116,169,207,
-,,,,4,"i",43,140,190,
-,,,,5,"k",4,90,141,
-"pubu",6,"seq",,1,"b",241,238,246,
-,,,,2,"d",208,209,230,
-,,,,3,"f",166,189,219,
-,,,,4,"g",116,169,207,
-,,,,5,"i",43,140,190,
-,,,,6,"k",4,90,141,
-"pubu",7,"seq",,1,"b",241,238,246,
-,,,,2,"d",208,209,230,
-,,,,3,"f",166,189,219,
-,,,,4,"g",116,169,207,
-,,,,5,"h",54,144,192,
-,,,,6,"j",5,112,176,
-,,,,7,"l",3,78,123,
-"pubu",8,"seq",,1,"a",255,247,251,
-,,,,2,"c",236,231,242,
-,,,,3,"d",208,209,230,
-,,,,4,"f",166,189,219,
-,,,,5,"g",116,169,207,
-,,,,6,"h",54,144,192,
-,,,,7,"j",5,112,176,
-,,,,8,"l",3,78,123,
-"pubu",9,"seq",,1,"a",255,247,251,
-,,,,2,"c",236,231,242,
-,,,,3,"d",208,209,230,
-,,,,4,"f",166,189,219,
-,,,,5,"g",116,169,207,
-,,,,6,"h",54,144,192,
-,,,,7,"j",5,112,176,
-,,,,8,"k",4,90,141,
-,,,,9,"m",2,56,88,
-"pubugn",3,"seq",,1,"c",236,226,240,"sequential"
-,,,,2,"f",166,189,219,
-,,,,3,"i",28,144,153,
-"pubugn",4,"seq",,1,"b",246,239,247,
-,,,,2,"e",189,201,225,
-,,,,3,"g",103,169,207,
-,,,,4,"j",2,129,138,
-"pubugn",5,"seq",,1,"b",246,239,247,
-,,,,2,"e",189,201,225,
-,,,,3,"g",103,169,207,
-,,,,4,"i",28,144,153,
-,,,,5,"k",1,108,89,
-"pubugn",6,"seq",,1,"b",246,239,247,
-,,,,2,"d",208,209,230,
-,,,,3,"f",166,189,219,
-,,,,4,"g",103,169,207,
-,,,,5,"i",28,144,153,
-,,,,6,"k",1,108,89,
-"pubugn",7,"seq",,1,"b",246,239,247,
-,,,,2,"d",208,209,230,
-,,,,3,"f",166,189,219,
-,,,,4,"g",103,169,207,
-,,,,5,"h",54,144,192,
-,,,,6,"j",2,129,138,
-,,,,7,"l",1,100,80,
-"pubugn",8,"seq",,1,"a",255,247,251,
-,,,,2,"c",236,226,240,
-,,,,3,"d",208,209,230,
-,,,,4,"f",166,189,219,
-,,,,5,"g",103,169,207,
-,,,,6,"h",54,144,192,
-,,,,7,"j",2,129,138,
-,,,,8,"l",1,100,80,
-"pubugn",9,"seq",,1,"a",255,247,251,
-,,,,2,"c",236,226,240,
-,,,,3,"d",208,209,230,
-,,,,4,"f",166,189,219,
-,,,,5,"g",103,169,207,
-,,,,6,"h",54,144,192,
-,,,,7,"j",2,129,138,
-,,,,8,"k",1,108,89,
-,,,,9,"m",1,70,54,
-"puor",3,"div",2,1,"e",241,163,64,"diverging"
-,,,,2,"h",247,247,247,
-,,,,3,"k",153,142,195,
-"puor",4,"div",2.5,1,"c",230,97,1,
-,,,,2,"f",253,184,99,
-,,,,3,"j",178,171,210,
-,,,,4,"m",94,60,153,
-"puor",5,"div",3,1,"c",230,97,1,
-,,,,2,"f",253,184,99,
-,,,,3,"h",247,247,247,
-,,,,4,"j",178,171,210,
-,,,,5,"m",94,60,153,
-"puor",6,"div",3.5,1,"b",179,88,6,
-,,,,2,"e",241,163,64,
-,,,,3,"g",254,224,182,
-,,,,4,"i",216,218,235,
-,,,,5,"k",153,142,195,
-,,,,6,"n",84,39,136,
-"puor",7,"div",4,1,"b",179,88,6,
-,,,,2,"e",241,163,64,
-,,,,3,"g",254,224,182,
-,,,,4,"h",247,247,247,
-,,,,5,"i",216,218,235,
-,,,,6,"k",153,142,195,
-,,,,7,"n",84,39,136,
-"puor",8,"div",4.5,1,"b",179,88,6,
-,,,,2,"d",224,130,20,
-,,,,3,"f",253,184,99,
-,,,,4,"g",254,224,182,
-,,,,5,"i",216,218,235,
-,,,,6,"j",178,171,210,
-,,,,7,"l",128,115,172,
-,,,,8,"n",84,39,136,
-"puor",9,"div",5,1,"b",179,88,6,
-,,,,2,"d",224,130,20,
-,,,,3,"f",253,184,99,
-,,,,4,"g",254,224,182,
-,,,,5,"h",247,247,247,
-,,,,6,"i",216,218,235,
-,,,,7,"j",178,171,210,
-,,,,8,"l",128,115,172,
-,,,,9,"n",84,39,136,
-"puor",10,"div",5.5,1,"a",127,59,8,
-,,,,2,"b",179,88,6,
-,,,,3,"d",224,130,20,
-,,,,4,"f",253,184,99,
-,,,,5,"g",254,224,182,
-,,,,6,"i",216,218,235,
-,,,,7,"j",178,171,210,
-,,,,8,"l",128,115,172,
-,,,,9,"n",84,39,136,
-,,,,10,"o",45,0,75,
-"puor",11,"div",6,1,"a",127,59,8,
-,,,,2,"b",179,88,6,
-,,,,3,"d",224,130,20,
-,,,,4,"f",253,184,99,
-,,,,5,"g",254,224,182,
-,,,,6,"h",247,247,247,
-,,,,7,"i",216,218,235,
-,,,,8,"j",178,171,210,
-,,,,9,"l",128,115,172,
-,,,,10,"n",84,39,136,
-,,,,11,"o",45,0,75,
-"purd",3,"seq",,1,"c",231,225,239,"sequential"
-,,,,2,"f",201,148,199,
-,,,,3,"i",221,28,119,
-"purd",4,"seq",,1,"b",241,238,246,
-,,,,2,"e",215,181,216,
-,,,,3,"g",223,101,176,
-,,,,4,"j",206,18,86,
-"purd",5,"seq",,1,"b",241,238,246,
-,,,,2,"e",215,181,216,
-,,,,3,"g",223,101,176,
-,,,,4,"i",221,28,119,
-,,,,5,"k",152,0,67,
-"purd",6,"seq",,1,"b",241,238,246,
-,,,,2,"d",212,185,218,
-,,,,3,"f",201,148,199,
-,,,,4,"g",223,101,176,
-,,,,5,"i",221,28,119,
-,,,,6,"k",152,0,67,
-"purd",7,"seq",,1,"b",241,238,246,
-,,,,2,"d",212,185,218,
-,,,,3,"f",201,148,199,
-,,,,4,"g",223,101,176,
-,,,,5,"h",231,41,138,
-,,,,6,"j",206,18,86,
-,,,,7,"l",145,0,63,
-"purd",8,"seq",,1,"a",247,244,249,
-,,,,2,"c",231,225,239,
-,,,,3,"d",212,185,218,
-,,,,4,"f",201,148,199,
-,,,,5,"g",223,101,176,
-,,,,6,"h",231,41,138,
-,,,,7,"j",206,18,86,
-,,,,8,"l",145,0,63,
-"purd",9,"seq",,1,"a",247,244,249,
-,,,,2,"c",231,225,239,
-,,,,3,"d",212,185,218,
-,,,,4,"f",201,148,199,
-,,,,5,"g",223,101,176,
-,,,,6,"h",231,41,138,
-,,,,7,"j",206,18,86,
-,,,,8,"k",152,0,67,
-,,,,9,"m",103,0,31,
-"purples",3,"seq",,1,"c",239,237,245,"sequential"
-,,,,2,"f",188,189,220,
-,,,,3,"i",117,107,177,
-"purples",4,"seq",,1,"b",242,240,247,
-,,,,2,"e",203,201,226,
-,,,,3,"g",158,154,200,
-,,,,4,"j",106,81,163,
-"purples",5,"seq",,1,"b",242,240,247,
-,,,,2,"e",203,201,226,
-,,,,3,"g",158,154,200,
-,,,,4,"i",117,107,177,
-,,,,5,"k",84,39,143,
-"purples",6,"seq",,1,"b",242,240,247,
-,,,,2,"d",218,218,235,
-,,,,3,"f",188,189,220,
-,,,,4,"g",158,154,200,
-,,,,5,"i",117,107,177,
-,,,,6,"k",84,39,143,
-"purples",7,"seq",,1,"b",242,240,247,
-,,,,2,"d",218,218,235,
-,,,,3,"f",188,189,220,
-,,,,4,"g",158,154,200,
-,,,,5,"h",128,125,186,
-,,,,6,"j",106,81,163,
-,,,,7,"l",74,20,134,
-"purples",8,"seq",,1,"a",252,251,253,
-,,,,2,"c",239,237,245,
-,,,,3,"d",218,218,235,
-,,,,4,"f",188,189,220,
-,,,,5,"g",158,154,200,
-,,,,6,"h",128,125,186,
-,,,,7,"j",106,81,163,
-,,,,8,"l",74,20,134,
-"purples",9,"seq",,1,"a",252,251,253,
-,,,,2,"c",239,237,245,
-,,,,3,"d",218,218,235,
-,,,,4,"f",188,189,220,
-,,,,5,"g",158,154,200,
-,,,,6,"h",128,125,186,
-,,,,7,"j",106,81,163,
-,,,,8,"k",84,39,143,
-,,,,9,"m",63,0,125,
-"rdbu",3,"div",2,1,"e",239,138,98,"diverging"
-,,,,2,"h",247,247,247,
-,,,,3,"k",103,169,207,
-"rdbu",4,"div",2.5,1,"c",202,0,32,
-,,,,2,"f",244,165,130,
-,,,,3,"j",146,197,222,
-,,,,4,"m",5,113,176,
-"rdbu",5,"div",3,1,"c",202,0,32,
-,,,,2,"f",244,165,130,
-,,,,3,"h",247,247,247,
-,,,,4,"j",146,197,222,
-,,,,5,"m",5,113,176,
-"rdbu",6,"div",3.5,1,"b",178,24,43,
-,,,,2,"e",239,138,98,
-,,,,3,"g",253,219,199,
-,,,,4,"i",209,229,240,
-,,,,5,"k",103,169,207,
-,,,,6,"n",33,102,172,
-"rdbu",7,"div",4,1,"b",178,24,43,
-,,,,2,"e",239,138,98,
-,,,,3,"g",253,219,199,
-,,,,4,"h",247,247,247,
-,,,,5,"i",209,229,240,
-,,,,6,"k",103,169,207,
-,,,,7,"n",33,102,172,
-"rdbu",8,"div",4.5,1,"b",178,24,43,
-,,,,2,"d",214,96,77,
-,,,,3,"f",244,165,130,
-,,,,4,"g",253,219,199,
-,,,,5,"i",209,229,240,
-,,,,6,"j",146,197,222,
-,,,,7,"l",67,147,195,
-,,,,8,"n",33,102,172,
-"rdbu",9,"div",5,1,"b",178,24,43,
-,,,,2,"d",214,96,77,
-,,,,3,"f",244,165,130,
-,,,,4,"g",253,219,199,
-,,,,5,"h",247,247,247,
-,,,,6,"i",209,229,240,
-,,,,7,"j",146,197,222,
-,,,,8,"l",67,147,195,
-,,,,9,"n",33,102,172,
-"rdbu",10,"div",5.5,1,"a",103,0,31,
-,,,,2,"b",178,24,43,
-,,,,3,"d",214,96,77,
-,,,,4,"f",244,165,130,
-,,,,5,"g",253,219,199,
-,,,,6,"i",209,229,240,
-,,,,7,"j",146,197,222,
-,,,,8,"l",67,147,195,
-,,,,9,"n",33,102,172,
-,,,,10,"o",5,48,97,
-"rdbu",11,"div",6,1,"a",103,0,31,
-,,,,2,"b",178,24,43,
-,,,,3,"d",214,96,77,
-,,,,4,"f",244,165,130,
-,,,,5,"g",253,219,199,
-,,,,6,"h",247,247,247,
-,,,,7,"i",209,229,240,
-,,,,8,"j",146,197,222,
-,,,,9,"l",67,147,195,
-,,,,10,"n",33,102,172,
-,,,,11,"o",5,48,97,
-"rdgy",3,"div",2,1,"e",239,138,98,"diverging"
-,,,,2,"h",255,255,255,
-,,,,3,"k",153,153,153,
-"rdgy",4,"div",2.5,1,"c",202,0,32,
-,,,,2,"f",244,165,130,
-,,,,3,"j",186,186,186,
-,,,,4,"m",64,64,64,
-"rdgy",5,"div",3,1,"c",202,0,32,
-,,,,2,"f",244,165,130,
-,,,,3,"h",255,255,255,
-,,,,4,"j",186,186,186,
-,,,,5,"m",64,64,64,
-"rdgy",6,"div",3.5,1,"b",178,24,43,
-,,,,2,"e",239,138,98,
-,,,,3,"g",253,219,199,
-,,,,4,"i",224,224,224,
-,,,,5,"k",153,153,153,
-,,,,6,"n",77,77,77,
-"rdgy",7,"div",4,1,"b",178,24,43,
-,,,,2,"e",239,138,98,
-,,,,3,"g",253,219,199,
-,,,,4,"h",255,255,255,
-,,,,5,"i",224,224,224,
-,,,,6,"k",153,153,153,
-,,,,7,"n",77,77,77,
-"rdgy",8,"div",4.5,1,"b",178,24,43,
-,,,,2,"d",214,96,77,
-,,,,3,"f",244,165,130,
-,,,,4,"g",253,219,199,
-,,,,5,"i",224,224,224,
-,,,,6,"j",186,186,186,
-,,,,7,"l",135,135,135,
-,,,,8,"n",77,77,77,
-"rdgy",9,"div",5,1,"b",178,24,43,
-,,,,2,"d",214,96,77,
-,,,,3,"f",244,165,130,
-,,,,4,"g",253,219,199,
-,,,,5,"h",255,255,255,
-,,,,6,"i",224,224,224,
-,,,,7,"j",186,186,186,
-,,,,8,"l",135,135,135,
-,,,,9,"n",77,77,77,
-"rdgy",10,"div",5.5,1,"a",103,0,31,
-,,,,2,"b",178,24,43,
-,,,,3,"d",214,96,77,
-,,,,4,"f",244,165,130,
-,,,,5,"g",253,219,199,
-,,,,6,"i",224,224,224,
-,,,,7,"j",186,186,186,
-,,,,8,"l",135,135,135,
-,,,,9,"n",77,77,77,
-,,,,10,"o",26,26,26,
-"rdgy",11,"div",6,1,"a",103,0,31,
-,,,,2,"b",178,24,43,
-,,,,3,"d",214,96,77,
-,,,,4,"f",244,165,130,
-,,,,5,"g",253,219,199,
-,,,,6,"h",255,255,255,
-,,,,7,"i",224,224,224,
-,,,,8,"j",186,186,186,
-,,,,9,"l",135,135,135,
-,,,,10,"n",77,77,77,
-,,,,11,"o",26,26,26,
-"rdpu",3,"seq",,1,"c",253,224,221,"sequential"
-,,,,2,"f",250,159,181,
-,,,,3,"i",197,27,138,
-"rdpu",4,"seq",,1,"b",254,235,226,
-,,,,2,"e",251,180,185,
-,,,,3,"g",247,104,161,
-,,,,4,"j",174,1,126,
-"rdpu",5,"seq",,1,"b",254,235,226,
-,,,,2,"e",251,180,185,
-,,,,3,"g",247,104,161,
-,,,,4,"i",197,27,138,
-,,,,5,"k",122,1,119,
-"rdpu",6,"seq",,1,"b",254,235,226,
-,,,,2,"d",252,197,192,
-,,,,3,"f",250,159,181,
-,,,,4,"g",247,104,161,
-,,,,5,"i",197,27,138,
-,,,,6,"k",122,1,119,
-"rdpu",7,"seq",,1,"b",254,235,226,
-,,,,2,"d",252,197,192,
-,,,,3,"f",250,159,181,
-,,,,4,"g",247,104,161,
-,,,,5,"h",221,52,151,
-,,,,6,"j",174,1,126,
-,,,,7,"l",122,1,119,
-"rdpu",8,"seq",,1,"a",255,247,243,
-,,,,2,"c",253,224,221,
-,,,,3,"d",252,197,192,
-,,,,4,"f",250,159,181,
-,,,,5,"g",247,104,161,
-,,,,6,"h",221,52,151,
-,,,,7,"j",174,1,126,
-,,,,8,"l",122,1,119,
-"rdpu",9,"seq",,1,"a",255,247,243,
-,,,,2,"c",253,224,221,
-,,,,3,"d",252,197,192,
-,,,,4,"f",250,159,181,
-,,,,5,"g",247,104,161,
-,,,,6,"h",221,52,151,
-,,,,7,"j",174,1,126,
-,,,,8,"k",122,1,119,
-,,,,9,"m",73,0,106,
-"reds",3,"seq",,1,"c",254,224,210,"sequential"
-,,,,2,"f",252,146,114,
-,,,,3,"i",222,45,38,
-"reds",4,"seq",,1,"b",254,229,217,
-,,,,2,"e",252,174,145,
-,,,,3,"g",251,106,74,
-,,,,4,"j",203,24,29,
-"reds",5,"seq",,1,"b",254,229,217,
-,,,,2,"e",252,174,145,
-,,,,3,"g",251,106,74,
-,,,,4,"i",222,45,38,
-,,,,5,"k",165,15,21,
-"reds",6,"seq",,1,"b",254,229,217,
-,,,,2,"d",252,187,161,
-,,,,3,"f",252,146,114,
-,,,,4,"g",251,106,74,
-,,,,5,"i",222,45,38,
-,,,,6,"k",165,15,21,
-"reds",7,"seq",,1,"b",254,229,217,
-,,,,2,"d",252,187,161,
-,,,,3,"f",252,146,114,
-,,,,4,"g",251,106,74,
-,,,,5,"h",239,59,44,
-,,,,6,"j",203,24,29,
-,,,,7,"l",153,0,13,
-"reds",8,"seq",,1,"a",255,245,240,
-,,,,2,"c",254,224,210,
-,,,,3,"d",252,187,161,
-,,,,4,"f",252,146,114,
-,,,,5,"g",251,106,74,
-,,,,6,"h",239,59,44,
-,,,,7,"j",203,24,29,
-,,,,8,"l",153,0,13,
-"reds",9,"seq",,1,"a",255,245,240,
-,,,,2,"c",254,224,210,
-,,,,3,"d",252,187,161,
-,,,,4,"f",252,146,114,
-,,,,5,"g",251,106,74,
-,,,,6,"h",239,59,44,
-,,,,7,"j",203,24,29,
-,,,,8,"k",165,15,21,
-,,,,9,"m",103,0,13,
-"rdylbu",3,"div",2,1,"e",252,141,89,"diverging"
-,,,,2,"h",255,255,191,
-,,,,3,"k",145,191,219,
-"rdylbu",4,"div",2.5,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"j",171,217,233,
-,,,,4,"m",44,123,182,
-"rdylbu",5,"div",3,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"h",255,255,191,
-,,,,4,"j",171,217,233,
-,,,,5,"m",44,123,182,
-"rdylbu",6,"div",3.5,1,"b",215,48,39,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,144,
-,,,,4,"i",224,243,248,
-,,,,5,"k",145,191,219,
-,,,,6,"n",69,117,180,
-"rdylbu",7,"div",4,1,"b",215,48,39,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,144,
-,,,,4,"h",255,255,191,
-,,,,5,"i",224,243,248,
-,,,,6,"k",145,191,219,
-,,,,7,"n",69,117,180,
-"rdylbu",8,"div",4.5,1,"b",215,48,39,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,144,
-,,,,5,"i",224,243,248,
-,,,,6,"j",171,217,233,
-,,,,7,"l",116,173,209,
-,,,,8,"n",69,117,180,
-"rdylbu",9,"div",5,1,"b",215,48,39,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,144,
-,,,,5,"h",255,255,191,
-,,,,6,"i",224,243,248,
-,,,,7,"j",171,217,233,
-,,,,8,"l",116,173,209,
-,,,,9,"n",69,117,180,
-"rdylbu",10,"div",5.5,1,"a",165,0,38,
-,,,,2,"b",215,48,39,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,144,
-,,,,6,"i",224,243,248,
-,,,,7,"j",171,217,233,
-,,,,8,"l",116,173,209,
-,,,,9,"n",69,117,180,
-,,,,10,"o",49,54,149,
-"rdylbu",11,"div",6,1,"a",165,0,38,
-,,,,2,"b",215,48,39,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,144,
-,,,,6,"h",255,255,191,
-,,,,7,"i",224,243,248,
-,,,,8,"j",171,217,233,
-,,,,9,"l",116,173,209,
-,,,,10,"n",69,117,180,
-,,,,11,"o",49,54,149,
-"rdylgn",3,"div",2,1,"e",252,141,89,"diverging"
-,,,,2,"h",255,255,191,
-,,,,3,"k",145,207,96,
-"rdylgn",4,"div",2.5,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"j",166,217,106,
-,,,,4,"m",26,150,65,
-"rdylgn",5,"div",3,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"h",255,255,191,
-,,,,4,"j",166,217,106,
-,,,,5,"m",26,150,65,
-"rdylgn",6,"div",3.5,1,"b",215,48,39,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,139,
-,,,,4,"i",217,239,139,
-,,,,5,"k",145,207,96,
-,,,,6,"n",26,152,80,
-"rdylgn",7,"div",4,1,"b",215,48,39,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,139,
-,,,,4,"h",255,255,191,
-,,,,5,"i",217,239,139,
-,,,,6,"k",145,207,96,
-,,,,7,"n",26,152,80,
-"rdylgn",8,"div",4.5,1,"b",215,48,39,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,139,
-,,,,5,"i",217,239,139,
-,,,,6,"j",166,217,106,
-,,,,7,"l",102,189,99,
-,,,,8,"n",26,152,80,
-"rdylgn",9,"div",5,1,"b",215,48,39,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,139,
-,,,,5,"h",255,255,191,
-,,,,6,"i",217,239,139,
-,,,,7,"j",166,217,106,
-,,,,8,"l",102,189,99,
-,,,,9,"n",26,152,80,
-"rdylgn",10,"div",5.5,1,"a",165,0,38,
-,,,,2,"b",215,48,39,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,139,
-,,,,6,"i",217,239,139,
-,,,,7,"j",166,217,106,
-,,,,8,"l",102,189,99,
-,,,,9,"n",26,152,80,
-,,,,10,"o",0,104,55,
-"rdylgn",11,"div",6,1,"a",165,0,38,
-,,,,2,"b",215,48,39,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,139,
-,,,,6,"h",255,255,191,
-,,,,7,"i",217,239,139,
-,,,,8,"j",166,217,106,
-,,,,9,"l",102,189,99,
-,,,,10,"n",26,152,80,
-,,,,11,"o",0,104,55,
-"set1",3,"qual",,1,"a",228,26,28,"qualitative"
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-"set1",4,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-"set1",5,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-,,,,5,"e",255,127,0,
-"set1",6,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-,,,,5,"e",255,127,0,
-,,,,6,"f",255,255,51,
-"set1",7,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-,,,,5,"e",255,127,0,
-,,,,6,"f",255,255,51,
-,,,,7,"g",166,86,40,
-"set1",8,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-,,,,5,"e",255,127,0,
-,,,,6,"f",255,255,51,
-,,,,7,"g",166,86,40,
-,,,,8,"h",247,129,191,
-"set1",9,"qual",,1,"a",228,26,28,
-,,,,2,"b",55,126,184,
-,,,,3,"c",77,175,74,
-,,,,4,"d",152,78,163,
-,,,,5,"e",255,127,0,
-,,,,6,"f",255,255,51,
-,,,,7,"g",166,86,40,
-,,,,8,"h",247,129,191,
-,,,,9,"i",153,153,153,
-"set2",3,"qual",,1,"a",102,194,165,"qualitative"
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-"set2",4,"qual",,1,"a",102,194,165,
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-,,,,4,"d",231,138,195,
-"set2",5,"qual",,1,"a",102,194,165,
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-,,,,4,"d",231,138,195,
-,,,,5,"e",166,216,84,
-"set2",6,"qual",,1,"a",102,194,165,
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-,,,,4,"d",231,138,195,
-,,,,5,"e",166,216,84,
-,,,,6,"f",255,217,47,
-"set2",7,"qual",,1,"a",102,194,165,
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-,,,,4,"d",231,138,195,
-,,,,5,"e",166,216,84,
-,,,,6,"f",255,217,47,
-,,,,7,"g",229,196,148,
-"set2",8,"qual",,1,"a",102,194,165,
-,,,,2,"b",252,141,98,
-,,,,3,"c",141,160,203,
-,,,,4,"d",231,138,195,
-,,,,5,"e",166,216,84,
-,,,,6,"f",255,217,47,
-,,,,7,"g",229,196,148,
-,,,,8,"h",179,179,179,
-"set3",3,"qual",,1,"a",141,211,199,"qualitative"
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-"set3",4,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-"set3",5,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-"set3",6,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-"set3",7,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-"set3",8,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-,,,,8,"h",252,205,229,
-"set3",9,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-,,,,8,"h",252,205,229,
-,,,,9,"i",217,217,217,
-"set3",10,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-,,,,8,"h",252,205,229,
-,,,,9,"i",217,217,217,
-,,,,10,"j",188,128,189,
-"set3",11,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-,,,,8,"h",252,205,229,
-,,,,9,"i",217,217,217,
-,,,,10,"j",188,128,189,
-,,,,11,"k",204,235,197,
-"set3",12,"qual",,1,"a",141,211,199,
-,,,,2,"b",255,255,179,
-,,,,3,"c",190,186,218,
-,,,,4,"d",251,128,114,
-,,,,5,"e",128,177,211,
-,,,,6,"f",253,180,98,
-,,,,7,"g",179,222,105,
-,,,,8,"h",252,205,229,
-,,,,9,"i",217,217,217,
-,,,,10,"j",188,128,189,
-,,,,11,"k",204,235,197,
-,,,,12,"l",255,237,111,
-"spectral",3,"div",2,1,"e",252,141,89,"diverging"
-,,,,2,"h",255,255,191,
-,,,,3,"k",153,213,148,
-"spectral",4,"div",2.5,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"j",171,221,164,
-,,,,4,"m",43,131,186,
-"spectral",5,"div",3,1,"c",215,25,28,
-,,,,2,"f",253,174,97,
-,,,,3,"h",255,255,191,
-,,,,4,"j",171,221,164,
-,,,,5,"m",43,131,186,
-"spectral",6,"div",3.5,1,"b",213,62,79,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,139,
-,,,,4,"i",230,245,152,
-,,,,5,"k",153,213,148,
-,,,,6,"n",50,136,189,
-"spectral",7,"div",4,1,"b",213,62,79,
-,,,,2,"e",252,141,89,
-,,,,3,"g",254,224,139,
-,,,,4,"h",255,255,191,
-,,,,5,"i",230,245,152,
-,,,,6,"k",153,213,148,
-,,,,7,"n",50,136,189,
-"spectral",8,"div",4.5,1,"b",213,62,79,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,139,
-,,,,5,"i",230,245,152,
-,,,,6,"j",171,221,164,
-,,,,7,"l",102,194,165,
-,,,,8,"n",50,136,189,
-"spectral",9,"div",5,1,"b",213,62,79,
-,,,,2,"d",244,109,67,
-,,,,3,"f",253,174,97,
-,,,,4,"g",254,224,139,
-,,,,5,"h",255,255,191,
-,,,,6,"i",230,245,152,
-,,,,7,"j",171,221,164,
-,,,,8,"l",102,194,165,
-,,,,9,"n",50,136,189,
-"spectral",10,"div",5.5,1,"a",158,1,66,
-,,,,2,"b",213,62,79,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,139,
-,,,,6,"i",230,245,152,
-,,,,7,"j",171,221,164,
-,,,,8,"l",102,194,165,
-,,,,9,"n",50,136,189,
-,,,,10,"o",94,79,162,
-"spectral",11,"div",6,1,"a",158,1,66,
-,,,,2,"b",213,62,79,
-,,,,3,"d",244,109,67,
-,,,,4,"f",253,174,97,
-,,,,5,"g",254,224,139,
-,,,,6,"h",255,255,191,
-,,,,7,"i",230,245,152,
-,,,,8,"j",171,221,164,
-,,,,9,"l",102,194,165,
-,,,,10,"n",50,136,189,
-,,,,11,"o",94,79,162,
-"ylgn",3,"seq",,1,"c",247,252,185,"sequential"
-,,,,2,"f",173,221,142,
-,,,,3,"i",49,163,84,
-"ylgn",4,"seq",,1,"b",255,255,204,
-,,,,2,"e",194,230,153,
-,,,,3,"g",120,198,121,
-,,,,4,"j",35,132,67,
-"ylgn",5,"seq",,1,"b",255,255,204,
-,,,,2,"e",194,230,153,
-,,,,3,"g",120,198,121,
-,,,,4,"i",49,163,84,
-,,,,5,"k",0,104,55,
-"ylgn",6,"seq",,1,"b",255,255,204,
-,,,,2,"d",217,240,163,
-,,,,3,"f",173,221,142,
-,,,,4,"g",120,198,121,
-,,,,5,"i",49,163,84,
-,,,,6,"k",0,104,55,
-"ylgn",7,"seq",,1,"b",255,255,204,
-,,,,2,"d",217,240,163,
-,,,,3,"f",173,221,142,
-,,,,4,"g",120,198,121,
-,,,,5,"h",65,171,93,
-,,,,6,"j",35,132,67,
-,,,,7,"l",0,90,50,
-"ylgn",8,"seq",,1,"a",255,255,229,
-,,,,2,"c",247,252,185,
-,,,,3,"d",217,240,163,
-,,,,4,"f",173,221,142,
-,,,,5,"g",120,198,121,
-,,,,6,"h",65,171,93,
-,,,,7,"j",35,132,67,
-,,,,8,"l",0,90,50,
-"ylgn",9,"seq",,1,"a",255,255,229,
-,,,,2,"c",247,252,185,
-,,,,3,"d",217,240,163,
-,,,,4,"f",173,221,142,
-,,,,5,"g",120,198,121,
-,,,,6,"h",65,171,93,
-,,,,7,"j",35,132,67,
-,,,,8,"k",0,104,55,
-,,,,9,"m",0,69,41,
-"ylgnbu",3,"seq",,1,"c",237,248,177,"sequential"
-,,,,2,"f",127,205,187,
-,,,,3,"i",44,127,184,
-"ylgnbu",4,"seq",,1,"b",255,255,204,
-,,,,2,"e",161,218,180,
-,,,,3,"g",65,182,196,
-,,,,4,"j",34,94,168,
-"ylgnbu",5,"seq",,1,"b",255,255,204,
-,,,,2,"e",161,218,180,
-,,,,3,"g",65,182,196,
-,,,,4,"i",44,127,184,
-,,,,5,"k",37,52,148,
-"ylgnbu",6,"seq",,1,"b",255,255,204,
-,,,,2,"d",199,233,180,
-,,,,3,"f",127,205,187,
-,,,,4,"g",65,182,196,
-,,,,5,"i",44,127,184,
-,,,,6,"k",37,52,148,
-"ylgnbu",7,"seq",,1,"b",255,255,204,
-,,,,2,"d",199,233,180,
-,,,,3,"f",127,205,187,
-,,,,4,"g",65,182,196,
-,,,,5,"h",29,145,192,
-,,,,6,"j",34,94,168,
-,,,,7,"l",12,44,132,
-"ylgnbu",8,"seq",,1,"a",255,255,217,
-,,,,2,"c",237,248,177,
-,,,,3,"d",199,233,180,
-,,,,4,"f",127,205,187,
-,,,,5,"g",65,182,196,
-,,,,6,"h",29,145,192,
-,,,,7,"j",34,94,168,
-,,,,8,"l",12,44,132,
-"ylgnbu",9,"seq",,1,"a",255,255,217,
-,,,,2,"c",237,248,177,
-,,,,3,"d",199,233,180,
-,,,,4,"f",127,205,187,
-,,,,5,"g",65,182,196,
-,,,,6,"h",29,145,192,
-,,,,7,"j",34,94,168,
-,,,,8,"k",37,52,148,
-,,,,9,"m",8,29,88,
-"ylorbr",3,"seq",,1,"c",255,247,188,"sequential"
-,,,,2,"f",254,196,79,
-,,,,3,"i",217,95,14,
-"ylorbr",4,"seq",,1,"b",255,255,212,
-,,,,2,"e",254,217,142,
-,,,,3,"g",254,153,41,
-,,,,4,"j",204,76,2,
-"ylorbr",5,"seq",,1,"b",255,255,212,
-,,,,2,"e",254,217,142,
-,,,,3,"g",254,153,41,
-,,,,4,"i",217,95,14,
-,,,,5,"k",153,52,4,
-"ylorbr",6,"seq",,1,"b",255,255,212,
-,,,,2,"d",254,227,145,
-,,,,3,"f",254,196,79,
-,,,,4,"g",254,153,41,
-,,,,5,"i",217,95,14,
-,,,,6,"k",153,52,4,
-"ylorbr",7,"seq",,1,"b",255,255,212,
-,,,,2,"d",254,227,145,
-,,,,3,"f",254,196,79,
-,,,,4,"g",254,153,41,
-,,,,5,"h",236,112,20,
-,,,,6,"j",204,76,2,
-,,,,7,"l",140,45,4,
-"ylorbr",8,"seq",,1,"a",255,255,229,
-,,,,2,"c",255,247,188,
-,,,,3,"d",254,227,145,
-,,,,4,"f",254,196,79,
-,,,,5,"g",254,153,41,
-,,,,6,"h",236,112,20,
-,,,,7,"j",204,76,2,
-,,,,8,"l",140,45,4,
-"ylorbr",9,"seq",,1,"a",255,255,229,
-,,,,2,"c",255,247,188,
-,,,,3,"d",254,227,145,
-,,,,4,"f",254,196,79,
-,,,,5,"g",254,153,41,
-,,,,6,"h",236,112,20,
-,,,,7,"j",204,76,2,
-,,,,8,"k",153,52,4,
-,,,,9,"m",102,37,6,
-"ylorrd",3,"seq",,1,"c",255,237,160,"sequential"
-,,,,2,"f",254,178,76,
-,,,,3,"i",240,59,32,
-"ylorrd",4,"seq",,1,"b",255,255,178,
-,,,,2,"e",254,204,92,
-,,,,3,"g",253,141,60,
-,,,,4,"j",227,26,28,
-"ylorrd",5,"seq",,1,"b",255,255,178,
-,,,,2,"e",254,204,92,
-,,,,3,"g",253,141,60,
-,,,,4,"i",240,59,32,
-,,,,5,"k",189,0,38,
-"ylorrd",6,"seq",,1,"b",255,255,178,
-,,,,2,"d",254,217,118,
-,,,,3,"f",254,178,76,
-,,,,4,"g",253,141,60,
-,,,,5,"i",240,59,32,
-,,,,6,"k",189,0,38,
-"ylorrd",7,"seq",,1,"b",255,255,178,
-,,,,2,"d",254,217,118,
-,,,,3,"f",254,178,76,
-,,,,4,"g",253,141,60,
-,,,,5,"h",252,78,42,
-,,,,6,"j",227,26,28,
-,,,,7,"l",177,0,38,
-"ylorrd",8,"seq",,1,"a",255,255,204,
-,,,,2,"c",255,237,160,
-,,,,3,"d",254,217,118,
-,,,,4,"f",254,178,76,
-,,,,5,"g",253,141,60,
-,,,,6,"h",252,78,42,
-,,,,7,"j",227,26,28,
-,,,,8,"l",177,0,38,
-"ylorrd",9,"seq",,1,"a",255,255,204,
-,,,,2,"c",255,237,160,
-,,,,3,"d",254,217,118,
-,,,,4,"f",254,178,76,
-,,,,5,"g",253,141,60,
-,,,,6,"h",252,78,42,
-,,,,7,"j",227,26,28,
-,,,,8,"k",189,0,38,
-,,,,9,"m",128,0,38,
+++ /dev/null
-! $Xorg: rgb.txt,v 1.3 2000/08/17 19:54:00 cpqbld Exp $
-255 250 250 snow
-248 248 255 ghost white
-248 248 255 GhostWhite
-245 245 245 white smoke
-245 245 245 WhiteSmoke
-220 220 220 gainsboro
-255 250 240 floral white
-255 250 240 FloralWhite
-253 245 230 old lace
-253 245 230 OldLace
-250 240 230 linen
-250 235 215 antique white
-250 235 215 AntiqueWhite
-255 239 213 papaya whip
-255 239 213 PapayaWhip
-255 235 205 blanched almond
-255 235 205 BlanchedAlmond
-255 228 196 bisque
-255 218 185 peach puff
-255 218 185 PeachPuff
-255 222 173 navajo white
-255 222 173 NavajoWhite
-255 228 181 moccasin
-255 248 220 cornsilk
-255 255 240 ivory
-255 250 205 lemon chiffon
-255 250 205 LemonChiffon
-255 245 238 seashell
-240 255 240 honeydew
-245 255 250 mint cream
-245 255 250 MintCream
-240 255 255 azure
-240 248 255 alice blue
-240 248 255 AliceBlue
-230 230 250 lavender
-255 240 245 lavender blush
-255 240 245 LavenderBlush
-255 228 225 misty rose
-255 228 225 MistyRose
-255 255 255 white
- 0 0 0 black
- 47 79 79 dark slate gray
- 47 79 79 DarkSlateGray
- 47 79 79 dark slate grey
- 47 79 79 DarkSlateGrey
-105 105 105 dim gray
-105 105 105 DimGray
-105 105 105 dim grey
-105 105 105 DimGrey
-112 128 144 slate gray
-112 128 144 SlateGray
-112 128 144 slate grey
-112 128 144 SlateGrey
-119 136 153 light slate gray
-119 136 153 LightSlateGray
-119 136 153 light slate grey
-119 136 153 LightSlateGrey
-190 190 190 gray
-190 190 190 grey
-211 211 211 light grey
-211 211 211 LightGrey
-211 211 211 light gray
-211 211 211 LightGray
- 25 25 112 midnight blue
- 25 25 112 MidnightBlue
- 0 0 128 navy
- 0 0 128 navy blue
- 0 0 128 NavyBlue
-100 149 237 cornflower blue
-100 149 237 CornflowerBlue
- 72 61 139 dark slate blue
- 72 61 139 DarkSlateBlue
-106 90 205 slate blue
-106 90 205 SlateBlue
-123 104 238 medium slate blue
-123 104 238 MediumSlateBlue
-132 112 255 light slate blue
-132 112 255 LightSlateBlue
- 0 0 205 medium blue
- 0 0 205 MediumBlue
- 65 105 225 royal blue
- 65 105 225 RoyalBlue
- 0 0 255 blue
- 30 144 255 dodger blue
- 30 144 255 DodgerBlue
- 0 191 255 deep sky blue
- 0 191 255 DeepSkyBlue
-135 206 235 sky blue
-135 206 235 SkyBlue
-135 206 250 light sky blue
-135 206 250 LightSkyBlue
- 70 130 180 steel blue
- 70 130 180 SteelBlue
-176 196 222 light steel blue
-176 196 222 LightSteelBlue
-173 216 230 light blue
-173 216 230 LightBlue
-176 224 230 powder blue
-176 224 230 PowderBlue
-175 238 238 pale turquoise
-175 238 238 PaleTurquoise
- 0 206 209 dark turquoise
- 0 206 209 DarkTurquoise
- 72 209 204 medium turquoise
- 72 209 204 MediumTurquoise
- 64 224 208 turquoise
- 0 255 255 cyan
-224 255 255 light cyan
-224 255 255 LightCyan
- 95 158 160 cadet blue
- 95 158 160 CadetBlue
-102 205 170 medium aquamarine
-102 205 170 MediumAquamarine
-127 255 212 aquamarine
- 0 100 0 dark green
- 0 100 0 DarkGreen
- 85 107 47 dark olive green
- 85 107 47 DarkOliveGreen
-143 188 143 dark sea green
-143 188 143 DarkSeaGreen
- 46 139 87 sea green
- 46 139 87 SeaGreen
- 60 179 113 medium sea green
- 60 179 113 MediumSeaGreen
- 32 178 170 light sea green
- 32 178 170 LightSeaGreen
-152 251 152 pale green
-152 251 152 PaleGreen
- 0 255 127 spring green
- 0 255 127 SpringGreen
-124 252 0 lawn green
-124 252 0 LawnGreen
- 0 255 0 green
-127 255 0 chartreuse
- 0 250 154 medium spring green
- 0 250 154 MediumSpringGreen
-173 255 47 green yellow
-173 255 47 GreenYellow
- 50 205 50 lime green
- 50 205 50 LimeGreen
-154 205 50 yellow green
-154 205 50 YellowGreen
- 34 139 34 forest green
- 34 139 34 ForestGreen
-107 142 35 olive drab
-107 142 35 OliveDrab
-189 183 107 dark khaki
-189 183 107 DarkKhaki
-240 230 140 khaki
-238 232 170 pale goldenrod
-238 232 170 PaleGoldenrod
-250 250 210 light goldenrod yellow
-250 250 210 LightGoldenrodYellow
-255 255 224 light yellow
-255 255 224 LightYellow
-255 255 0 yellow
-255 215 0 gold
-238 221 130 light goldenrod
-238 221 130 LightGoldenrod
-218 165 32 goldenrod
-184 134 11 dark goldenrod
-184 134 11 DarkGoldenrod
-188 143 143 rosy brown
-188 143 143 RosyBrown
-205 92 92 indian red
-205 92 92 IndianRed
-139 69 19 saddle brown
-139 69 19 SaddleBrown
-160 82 45 sienna
-205 133 63 peru
-222 184 135 burlywood
-245 245 220 beige
-245 222 179 wheat
-244 164 96 sandy brown
-244 164 96 SandyBrown
-210 180 140 tan
-210 105 30 chocolate
-178 34 34 firebrick
-165 42 42 brown
-233 150 122 dark salmon
-233 150 122 DarkSalmon
-250 128 114 salmon
-255 160 122 light salmon
-255 160 122 LightSalmon
-255 165 0 orange
-255 140 0 dark orange
-255 140 0 DarkOrange
-255 127 80 coral
-240 128 128 light coral
-240 128 128 LightCoral
-255 99 71 tomato
-255 69 0 orange red
-255 69 0 OrangeRed
-255 0 0 red
-255 105 180 hot pink
-255 105 180 HotPink
-255 20 147 deep pink
-255 20 147 DeepPink
-255 192 203 pink
-255 182 193 light pink
-255 182 193 LightPink
-219 112 147 pale violet red
-219 112 147 PaleVioletRed
-176 48 96 maroon
-199 21 133 medium violet red
-199 21 133 MediumVioletRed
-208 32 144 violet red
-208 32 144 VioletRed
-255 0 255 magenta
-238 130 238 violet
-221 160 221 plum
-218 112 214 orchid
-186 85 211 medium orchid
-186 85 211 MediumOrchid
-153 50 204 dark orchid
-153 50 204 DarkOrchid
-148 0 211 dark violet
-148 0 211 DarkViolet
-138 43 226 blue violet
-138 43 226 BlueViolet
-160 32 240 purple
-147 112 219 medium purple
-147 112 219 MediumPurple
-216 191 216 thistle
-255 250 250 snow1
-238 233 233 snow2
-205 201 201 snow3
-139 137 137 snow4
-255 245 238 seashell1
-238 229 222 seashell2
-205 197 191 seashell3
-139 134 130 seashell4
-255 239 219 AntiqueWhite1
-238 223 204 AntiqueWhite2
-205 192 176 AntiqueWhite3
-139 131 120 AntiqueWhite4
-255 228 196 bisque1
-238 213 183 bisque2
-205 183 158 bisque3
-139 125 107 bisque4
-255 218 185 PeachPuff1
-238 203 173 PeachPuff2
-205 175 149 PeachPuff3
-139 119 101 PeachPuff4
-255 222 173 NavajoWhite1
-238 207 161 NavajoWhite2
-205 179 139 NavajoWhite3
-139 121 94 NavajoWhite4
-255 250 205 LemonChiffon1
-238 233 191 LemonChiffon2
-205 201 165 LemonChiffon3
-139 137 112 LemonChiffon4
-255 248 220 cornsilk1
-238 232 205 cornsilk2
-205 200 177 cornsilk3
-139 136 120 cornsilk4
-255 255 240 ivory1
-238 238 224 ivory2
-205 205 193 ivory3
-139 139 131 ivory4
-240 255 240 honeydew1
-224 238 224 honeydew2
-193 205 193 honeydew3
-131 139 131 honeydew4
-255 240 245 LavenderBlush1
-238 224 229 LavenderBlush2
-205 193 197 LavenderBlush3
-139 131 134 LavenderBlush4
-255 228 225 MistyRose1
-238 213 210 MistyRose2
-205 183 181 MistyRose3
-139 125 123 MistyRose4
-240 255 255 azure1
-224 238 238 azure2
-193 205 205 azure3
-131 139 139 azure4
-131 111 255 SlateBlue1
-122 103 238 SlateBlue2
-105 89 205 SlateBlue3
- 71 60 139 SlateBlue4
- 72 118 255 RoyalBlue1
- 67 110 238 RoyalBlue2
- 58 95 205 RoyalBlue3
- 39 64 139 RoyalBlue4
- 0 0 255 blue1
- 0 0 238 blue2
- 0 0 205 blue3
- 0 0 139 blue4
- 30 144 255 DodgerBlue1
- 28 134 238 DodgerBlue2
- 24 116 205 DodgerBlue3
- 16 78 139 DodgerBlue4
- 99 184 255 SteelBlue1
- 92 172 238 SteelBlue2
- 79 148 205 SteelBlue3
- 54 100 139 SteelBlue4
- 0 191 255 DeepSkyBlue1
- 0 178 238 DeepSkyBlue2
- 0 154 205 DeepSkyBlue3
- 0 104 139 DeepSkyBlue4
-135 206 255 SkyBlue1
-126 192 238 SkyBlue2
-108 166 205 SkyBlue3
- 74 112 139 SkyBlue4
-176 226 255 LightSkyBlue1
-164 211 238 LightSkyBlue2
-141 182 205 LightSkyBlue3
- 96 123 139 LightSkyBlue4
-198 226 255 SlateGray1
-185 211 238 SlateGray2
-159 182 205 SlateGray3
-108 123 139 SlateGray4
-202 225 255 LightSteelBlue1
-188 210 238 LightSteelBlue2
-162 181 205 LightSteelBlue3
-110 123 139 LightSteelBlue4
-191 239 255 LightBlue1
-178 223 238 LightBlue2
-154 192 205 LightBlue3
-104 131 139 LightBlue4
-224 255 255 LightCyan1
-209 238 238 LightCyan2
-180 205 205 LightCyan3
-122 139 139 LightCyan4
-187 255 255 PaleTurquoise1
-174 238 238 PaleTurquoise2
-150 205 205 PaleTurquoise3
-102 139 139 PaleTurquoise4
-152 245 255 CadetBlue1
-142 229 238 CadetBlue2
-122 197 205 CadetBlue3
- 83 134 139 CadetBlue4
- 0 245 255 turquoise1
- 0 229 238 turquoise2
- 0 197 205 turquoise3
- 0 134 139 turquoise4
- 0 255 255 cyan1
- 0 238 238 cyan2
- 0 205 205 cyan3
- 0 139 139 cyan4
-151 255 255 DarkSlateGray1
-141 238 238 DarkSlateGray2
-121 205 205 DarkSlateGray3
- 82 139 139 DarkSlateGray4
-127 255 212 aquamarine1
-118 238 198 aquamarine2
-102 205 170 aquamarine3
- 69 139 116 aquamarine4
-193 255 193 DarkSeaGreen1
-180 238 180 DarkSeaGreen2
-155 205 155 DarkSeaGreen3
-105 139 105 DarkSeaGreen4
- 84 255 159 SeaGreen1
- 78 238 148 SeaGreen2
- 67 205 128 SeaGreen3
- 46 139 87 SeaGreen4
-154 255 154 PaleGreen1
-144 238 144 PaleGreen2
-124 205 124 PaleGreen3
- 84 139 84 PaleGreen4
- 0 255 127 SpringGreen1
- 0 238 118 SpringGreen2
- 0 205 102 SpringGreen3
- 0 139 69 SpringGreen4
- 0 255 0 green1
- 0 238 0 green2
- 0 205 0 green3
- 0 139 0 green4
-127 255 0 chartreuse1
-118 238 0 chartreuse2
-102 205 0 chartreuse3
- 69 139 0 chartreuse4
-192 255 62 OliveDrab1
-179 238 58 OliveDrab2
-154 205 50 OliveDrab3
-105 139 34 OliveDrab4
-202 255 112 DarkOliveGreen1
-188 238 104 DarkOliveGreen2
-162 205 90 DarkOliveGreen3
-110 139 61 DarkOliveGreen4
-255 246 143 khaki1
-238 230 133 khaki2
-205 198 115 khaki3
-139 134 78 khaki4
-255 236 139 LightGoldenrod1
-238 220 130 LightGoldenrod2
-205 190 112 LightGoldenrod3
-139 129 76 LightGoldenrod4
-255 255 224 LightYellow1
-238 238 209 LightYellow2
-205 205 180 LightYellow3
-139 139 122 LightYellow4
-255 255 0 yellow1
-238 238 0 yellow2
-205 205 0 yellow3
-139 139 0 yellow4
-255 215 0 gold1
-238 201 0 gold2
-205 173 0 gold3
-139 117 0 gold4
-255 193 37 goldenrod1
-238 180 34 goldenrod2
-205 155 29 goldenrod3
-139 105 20 goldenrod4
-255 185 15 DarkGoldenrod1
-238 173 14 DarkGoldenrod2
-205 149 12 DarkGoldenrod3
-139 101 8 DarkGoldenrod4
-255 193 193 RosyBrown1
-238 180 180 RosyBrown2
-205 155 155 RosyBrown3
-139 105 105 RosyBrown4
-255 106 106 IndianRed1
-238 99 99 IndianRed2
-205 85 85 IndianRed3
-139 58 58 IndianRed4
-255 130 71 sienna1
-238 121 66 sienna2
-205 104 57 sienna3
-139 71 38 sienna4
-255 211 155 burlywood1
-238 197 145 burlywood2
-205 170 125 burlywood3
-139 115 85 burlywood4
-255 231 186 wheat1
-238 216 174 wheat2
-205 186 150 wheat3
-139 126 102 wheat4
-255 165 79 tan1
-238 154 73 tan2
-205 133 63 tan3
-139 90 43 tan4
-255 127 36 chocolate1
-238 118 33 chocolate2
-205 102 29 chocolate3
-139 69 19 chocolate4
-255 48 48 firebrick1
-238 44 44 firebrick2
-205 38 38 firebrick3
-139 26 26 firebrick4
-255 64 64 brown1
-238 59 59 brown2
-205 51 51 brown3
-139 35 35 brown4
-255 140 105 salmon1
-238 130 98 salmon2
-205 112 84 salmon3
-139 76 57 salmon4
-255 160 122 LightSalmon1
-238 149 114 LightSalmon2
-205 129 98 LightSalmon3
-139 87 66 LightSalmon4
-255 165 0 orange1
-238 154 0 orange2
-205 133 0 orange3
-139 90 0 orange4
-255 127 0 DarkOrange1
-238 118 0 DarkOrange2
-205 102 0 DarkOrange3
-139 69 0 DarkOrange4
-255 114 86 coral1
-238 106 80 coral2
-205 91 69 coral3
-139 62 47 coral4
-255 99 71 tomato1
-238 92 66 tomato2
-205 79 57 tomato3
-139 54 38 tomato4
-255 69 0 OrangeRed1
-238 64 0 OrangeRed2
-205 55 0 OrangeRed3
-139 37 0 OrangeRed4
-255 0 0 red1
-238 0 0 red2
-205 0 0 red3
-139 0 0 red4
-255 20 147 DeepPink1
-238 18 137 DeepPink2
-205 16 118 DeepPink3
-139 10 80 DeepPink4
-255 110 180 HotPink1
-238 106 167 HotPink2
-205 96 144 HotPink3
-139 58 98 HotPink4
-255 181 197 pink1
-238 169 184 pink2
-205 145 158 pink3
-139 99 108 pink4
-255 174 185 LightPink1
-238 162 173 LightPink2
-205 140 149 LightPink3
-139 95 101 LightPink4
-255 130 171 PaleVioletRed1
-238 121 159 PaleVioletRed2
-205 104 137 PaleVioletRed3
-139 71 93 PaleVioletRed4
-255 52 179 maroon1
-238 48 167 maroon2
-205 41 144 maroon3
-139 28 98 maroon4
-255 62 150 VioletRed1
-238 58 140 VioletRed2
-205 50 120 VioletRed3
-139 34 82 VioletRed4
-255 0 255 magenta1
-238 0 238 magenta2
-205 0 205 magenta3
-139 0 139 magenta4
-255 131 250 orchid1
-238 122 233 orchid2
-205 105 201 orchid3
-139 71 137 orchid4
-255 187 255 plum1
-238 174 238 plum2
-205 150 205 plum3
-139 102 139 plum4
-224 102 255 MediumOrchid1
-209 95 238 MediumOrchid2
-180 82 205 MediumOrchid3
-122 55 139 MediumOrchid4
-191 62 255 DarkOrchid1
-178 58 238 DarkOrchid2
-154 50 205 DarkOrchid3
-104 34 139 DarkOrchid4
-155 48 255 purple1
-145 44 238 purple2
-125 38 205 purple3
- 85 26 139 purple4
-171 130 255 MediumPurple1
-159 121 238 MediumPurple2
-137 104 205 MediumPurple3
- 93 71 139 MediumPurple4
-255 225 255 thistle1
-238 210 238 thistle2
-205 181 205 thistle3
-139 123 139 thistle4
- 0 0 0 gray0
- 0 0 0 grey0
- 3 3 3 gray1
- 3 3 3 grey1
- 5 5 5 gray2
- 5 5 5 grey2
- 8 8 8 gray3
- 8 8 8 grey3
- 10 10 10 gray4
- 10 10 10 grey4
- 13 13 13 gray5
- 13 13 13 grey5
- 15 15 15 gray6
- 15 15 15 grey6
- 18 18 18 gray7
- 18 18 18 grey7
- 20 20 20 gray8
- 20 20 20 grey8
- 23 23 23 gray9
- 23 23 23 grey9
- 26 26 26 gray10
- 26 26 26 grey10
- 28 28 28 gray11
- 28 28 28 grey11
- 31 31 31 gray12
- 31 31 31 grey12
- 33 33 33 gray13
- 33 33 33 grey13
- 36 36 36 gray14
- 36 36 36 grey14
- 38 38 38 gray15
- 38 38 38 grey15
- 41 41 41 gray16
- 41 41 41 grey16
- 43 43 43 gray17
- 43 43 43 grey17
- 46 46 46 gray18
- 46 46 46 grey18
- 48 48 48 gray19
- 48 48 48 grey19
- 51 51 51 gray20
- 51 51 51 grey20
- 54 54 54 gray21
- 54 54 54 grey21
- 56 56 56 gray22
- 56 56 56 grey22
- 59 59 59 gray23
- 59 59 59 grey23
- 61 61 61 gray24
- 61 61 61 grey24
- 64 64 64 gray25
- 64 64 64 grey25
- 66 66 66 gray26
- 66 66 66 grey26
- 69 69 69 gray27
- 69 69 69 grey27
- 71 71 71 gray28
- 71 71 71 grey28
- 74 74 74 gray29
- 74 74 74 grey29
- 77 77 77 gray30
- 77 77 77 grey30
- 79 79 79 gray31
- 79 79 79 grey31
- 82 82 82 gray32
- 82 82 82 grey32
- 84 84 84 gray33
- 84 84 84 grey33
- 87 87 87 gray34
- 87 87 87 grey34
- 89 89 89 gray35
- 89 89 89 grey35
- 92 92 92 gray36
- 92 92 92 grey36
- 94 94 94 gray37
- 94 94 94 grey37
- 97 97 97 gray38
- 97 97 97 grey38
- 99 99 99 gray39
- 99 99 99 grey39
-102 102 102 gray40
-102 102 102 grey40
-105 105 105 gray41
-105 105 105 grey41
-107 107 107 gray42
-107 107 107 grey42
-110 110 110 gray43
-110 110 110 grey43
-112 112 112 gray44
-112 112 112 grey44
-115 115 115 gray45
-115 115 115 grey45
-117 117 117 gray46
-117 117 117 grey46
-120 120 120 gray47
-120 120 120 grey47
-122 122 122 gray48
-122 122 122 grey48
-125 125 125 gray49
-125 125 125 grey49
-127 127 127 gray50
-127 127 127 grey50
-130 130 130 gray51
-130 130 130 grey51
-133 133 133 gray52
-133 133 133 grey52
-135 135 135 gray53
-135 135 135 grey53
-138 138 138 gray54
-138 138 138 grey54
-140 140 140 gray55
-140 140 140 grey55
-143 143 143 gray56
-143 143 143 grey56
-145 145 145 gray57
-145 145 145 grey57
-148 148 148 gray58
-148 148 148 grey58
-150 150 150 gray59
-150 150 150 grey59
-153 153 153 gray60
-153 153 153 grey60
-156 156 156 gray61
-156 156 156 grey61
-158 158 158 gray62
-158 158 158 grey62
-161 161 161 gray63
-161 161 161 grey63
-163 163 163 gray64
-163 163 163 grey64
-166 166 166 gray65
-166 166 166 grey65
-168 168 168 gray66
-168 168 168 grey66
-171 171 171 gray67
-171 171 171 grey67
-173 173 173 gray68
-173 173 173 grey68
-176 176 176 gray69
-176 176 176 grey69
-179 179 179 gray70
-179 179 179 grey70
-181 181 181 gray71
-181 181 181 grey71
-184 184 184 gray72
-184 184 184 grey72
-186 186 186 gray73
-186 186 186 grey73
-189 189 189 gray74
-189 189 189 grey74
-191 191 191 gray75
-191 191 191 grey75
-194 194 194 gray76
-194 194 194 grey76
-196 196 196 gray77
-196 196 196 grey77
-199 199 199 gray78
-199 199 199 grey78
-201 201 201 gray79
-201 201 201 grey79
-204 204 204 gray80
-204 204 204 grey80
-207 207 207 gray81
-207 207 207 grey81
-209 209 209 gray82
-209 209 209 grey82
-212 212 212 gray83
-212 212 212 grey83
-214 214 214 gray84
-214 214 214 grey84
-217 217 217 gray85
-217 217 217 grey85
-219 219 219 gray86
-219 219 219 grey86
-222 222 222 gray87
-222 222 222 grey87
-224 224 224 gray88
-224 224 224 grey88
-227 227 227 gray89
-227 227 227 grey89
-229 229 229 gray90
-229 229 229 grey90
-232 232 232 gray91
-232 232 232 grey91
-235 235 235 gray92
-235 235 235 grey92
-237 237 237 gray93
-237 237 237 grey93
-240 240 240 gray94
-240 240 240 grey94
-242 242 242 gray95
-242 242 242 grey95
-245 245 245 gray96
-245 245 245 grey96
-247 247 247 gray97
-247 247 247 grey97
-250 250 250 gray98
-250 250 250 grey98
-252 252 252 gray99
-252 252 252 grey99
-255 255 255 gray100
-255 255 255 grey100
-169 169 169 dark grey
-169 169 169 DarkGrey
-169 169 169 dark gray
-169 169 169 DarkGray
-0 0 139 dark blue
-0 0 139 DarkBlue
-0 139 139 dark cyan
-0 139 139 DarkCyan
-139 0 139 dark magenta
-139 0 139 DarkMagenta
-139 0 0 dark red
-139 0 0 DarkRed
-144 238 144 light green
-144 238 144 LightGreen
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="generator"
- content="HTML Tidy for Mac OS X (vers 1st September 2002), see www.w3.org" />
- <title>Basic Data Types and Interfaces - SVG 1.1 -
- 20030114</title>
- <link rel="stylesheet" type="text/css" media="screen"
- href="style/svg-style.css" />
- <link rel="stylesheet" type="text/css" media="screen"
- href="http://www.w3.org/StyleSheets/TR/W3C-REC" />
- <link rel="prev" href="render.html" />
- <link rel="next" href="struct.html" />
- <link rel="contents" href="index.html#minitoc" />
- <link rel="element" href="eltindex.html" title="elements" />
- <link rel="attributes" href="attindex.html"
- title="attributes" />
- <link rel="CSS-properties" href="propidx.html"
- title="properties" />
- <link rel="index" href="indexlist.html" title="index" />
- </head>
- <body>
- <div class="navlinks">
- <p><a href="render.html">previous</a> <a
- href="struct.html">next</a> <a
- href="index.html#minitoc">contents</a> <a
- href="eltindex.html">elements</a> <a
- href="attindex.html">attributes</a> <a
- href="propidx.html">properties</a> <a
- href="indexlist.html">index</a> </p>
- </div>
- <hr class="navbar" />
- <div class='noprint' style='text-align: right'>
- <p style='font-family: monospace;font-size:small'>14 January
- 2003</p>
- </div>
- <h1>4 Basic Data Types and Interfaces</h1>
- <br />
- <a id="Contents"/>
- <h3>Contents</h3>
- <ul class="toc">
- <li class="tocline2"><a href="types.html#BasicDataTypes"
- class="tocxref">4.1 Basic data types</a></li>
- <li class="tocline2"><a href="types.html#ColorKeywords"
- class="tocxref">4.2 Recognized color keyword names</a></li>
- <li class="tocline2"><a href="types.html#BasicDOMInterfaces"
- class="tocxref">4.3 Basic DOM interfaces</a></li>
- </ul>
- <br />
- <a id="BasicDataTypes" class="indexref-basic_data_types"/>
- <h2>4.1 Basic data types</h2>
- <p>The common data types for SVG's properties and attributes
- fall into the following categories:</p>
- <ul>
- <li><a id="DataTypeInteger"
- class="indexref-basic_data_types::integer"/> <span
- class="SVG-Term"><integer></span>: An <integer>
- is specified as an optional sign character ('+' or '-')
- followed by one or more digits "0" to "9". If the sign
- character is not present, the number is non-negative.<br />
- Unless stated otherwise for a particular attribute or <a
- href="intro.html#TermProperty">property</a>, the range for a
- <integer> encompasses (at a minimum) -2147483648 to
- 2147483647.<br />
- Within the SVG DOM, an <integer> is represented as an
- <span class="DOMInterfaceName">long</span> or an <a
- href="types.html#InterfaceSVGAnimatedInteger"><span
- class="DOMInterfaceName">SVGAnimatedInteger</span></a>.</li>
- <li>
- <a id="DataTypeNumber"
- class="indexref-basic_data_types::number"/> <span
- class="SVG-Term"><number></span> (real number value):
- The specification of real number values is different for <a
- href="intro.html#TermProperty">property</a> values than for
- XML attribute values.
- <ul>
- <li>CSS2 [<a
- href="http://www.w3.org/TR/REC-CSS2/">CSS2</a>] states
- that a <a href="intro.html#TermProperty">property</a>
- value which is a <number> is specified in <span
- class="SVG-Term">decimal notation</span> (i.e., a <a
- id="DataTypeDecimalNumber"><span
- class="attr-value"><decimal-number></span></a>),
- which consists of either an <a
- href="types.html#DataTypeInteger"><integer></a>, or
- an optional sign character followed by zero or more
- digits followed by a dot (.) followed by one or more
- digits. Thus, for conformance with CSS2, any <a
- href="intro.html#TermProperty">property</a> in SVG which
- accepts <number> values is specified in decimal
- notation only.</li>
- <li>For SVG's XML attributes, to provide as much
- scalability in numeric values as possible, real number
- values can be provided either in <a
- href="types.html#DataTypeDecimalNumber">decimal
- notation</a> or in <span class="SVG-Term">scientific
- notation</span> (i.e., a <a id="DataTypeScientificNumber"><span
- class="attr-value"><scientific-number></span></a>),
- which consists of a <a
- href="types.html#DataTypeDecimalNumber"><decimal-number></a>
- immediately followed by the letter "e" or "E" immediately
- followed by an <a
- href="types.html#DataTypeInteger"><integer></a>.</li>
- </ul>
- Unless stated otherwise for a particular attribute or <a
- href="intro.html#TermProperty">property</a>, a
- <number> has the capacity for at least a
- single-precision floating point number (see [<a
- href="http://www.color.org/ICC-1A_1999-04.PDF">ICC32</a>])
- and has a range (at a minimum) of -3.4e+38F to
- +3.4e+38F.<br />
- It is recommended that higher precision floating point
- storage and computation be performed on operations such as
- coordinate system transformations to provide the best
- possible precision and to prevent round-off errors.<br />
- <a
- href="conform.html#ConformingHighQualitySVGViewers">Conforming
- High-Quality SVG Viewers</a> are required to use at least
- double-precision floating point (see [<a
- href="http://www.color.org/ICC-1A_1999-04.PDF">ICC32</a>])
- for intermediate calculations on certain numerical
- operations.<br />
- Within the SVG DOM, a <number> is represented as a
- <span class="DOMInterfaceName">float</span> or an <a
- href="types.html#InterfaceSVGAnimatedNumber"><span
- class="DOMInterfaceName">SVGAnimatedNumber</span></a>.
- </li>
- <li><a id="DataTypeLength"
- class="indexref-basic_data_types::length"/> <span
- class="SVG-Term"><length></span>: A length is a
- distance measurement. The format of a <length> is a <a
- href="types.html#DataTypeNumber"><number></a>
- optionally followed immediately by a <a
- href="coords.html#UnitIdentifiers">unit identifier</a>. (Note
- that the specification of a <a
- href="types.html#DataTypeNumber"><number></a> is
- different for <a href="intro.html#TermProperty">property</a>
- values than for XML attribute values.)<br />
- If the <length> is expressed as a value without a unit
- identifier (e.g., <span class="attr-value">48</span>), then
- the <length> represents a distance in the current user
- coordinate system.<br />
- If one of the <a href="coords.html#UnitIdentifiers">unit
- identifiers</a> is provided (e.g., <span
- class="attr-value">12mm</span>), then the <length> is
- processed according to the description in <a
- href="coords.html#Units">Units</a>.<br />
- Percentage values (e.g., <span
- class="attr-value">10%</span>) depend on the particular
- property or attribute to which the percentage value has been
- assigned. Two common cases are: (a) when a percentage value
- represents a percent of the viewport (refer to the section
- that discusses <a href="coords.html#Units">Units</a> in
- general), and (b) when a percentage value represents a
- percent of the bounding box on a given object (refer to the
- section that describes <a
- href="coords.html#ObjectBoundingBox">Object bounding box
- units</a>).<br />
- Within the SVG DOM, a <length> is represented as an <a
- href="types.html#InterfaceSVGLength"><span
- class="DOMInterfaceName">SVGLength</span></a> or an <a
- href="types.html#InterfaceSVGAnimatedLength"><span
- class="DOMInterfaceName">SVGAnimatedLength</span></a>.</li>
- <li><a id="DataTypeCoordinate"
- class="indexref-basic_data_types::coordinate"/> <span
- class="SVG-Term"><coordinate></span>: A
- <coordinate> represents a <a
- href="types.html#DataTypeLength"><length></a> in the
- user coordinate system that is the given distance from the
- origin of the user coordinate system along the relevant axis
- (the x-axis for X coordinates, the y-axis for Y
- coordinates).<br />
- Within the SVG DOM, a <coordinate> is represented as
- an <a href="types.html#InterfaceSVGLength"><span
- class="DOMInterfaceName">SVGLength</span></a> or an <a
- href="types.html#InterfaceSVGAnimatedLength"><span
- class="DOMInterfaceName">SVGAnimatedLength</span></a> since
- both values have the same syntax.</li>
- <li>
- <a id="DataTypeList"
- class="indexref-basic_data_types::list"/> <span
- class="SVG-Term"><list of xxx></span> (where xxx
- represents a value of some type): A list consists of a
- separated sequence of values. The specification of lists is
- different for <a
- href="intro.html#TermProperty">property</a> values than for
- XML attribute values.
- <ul>
- <li>Lists in <a
- href="intro.html#TermProperty">property</a> values are
- either comma-separated, with optional white space before
- or after the comma, or space-separated, as specified
- either in the <a
- href="http://www.w3.org/TR/REC-CSS2/">CSS2</a>
- specification (if the property is defined there) or in
- this specification (if the property is not defined in the
- CSS2 specification).</li>
- <li>Unless explicitly described differently, lists within
- SVG's XML attributes can be either comma-separated, with
- optional white space before or after the comma, or white
- space-separated.</li>
- </ul>
- White space in lists is defined as one or more of the
- following consecutive characters: "space" (Unicode code
- 32), "tab" (9), "line feed" (10), "carriage return" (13)
- and "form-feed" (12).<br />
- Within the SVG DOM, a <list of xxx> is represented
- by various custom interfaces, such as <a
- href="coords.html#InterfaceSVGTransformList"><span
- class="DOMInterfaceName">SVGTransformList</span></a>.<br />
- Here is a description of the grammar for a <list of
- xxx>:
-<pre>
-ListOfXXX:
- XXX
- | XXX comma-wsp ListOfXXX
-comma-wsp:
- (wsp+ comma? wsp*) | (comma wsp*)
-comma:
- ","
-wsp:
- (#x20 | #x9 | #xD | #xA)
-</pre>
- where XXX represents a particular type of value.<br />
- <br />
- </li>
- <li><a id="DataTypeNumberOptionalNumber"
- class="indexref-basic_data_types::number-optional-number"/>
- <span class="SVG-Term"><number-optional-number></span>:
- A special case of <a href="types.html#DataTypeList"><list
- of xxx></a> where there are at least one and at most two
- entries in the list and the entries are of type <a
- href="types.html#DataTypeNumber"><number></a>.</li>
- <li>
- <a id="DataTypeAngle"
- class="indexref-basic_data_types::angle"/> <span
- class="SVG-Term"><angle></span>: An angle value is a
- <a href="types.html#DataTypeNumber"><number></a>
- optionally followed immediately with an angle unit
- identifier. Angle unit identifiers are:
- <ul>
- <li><span class="attr-value">deg</span>: degrees</li>
- <li><span class="attr-value">grad</span>: grads</li>
- <li><span class="attr-value">rad</span>: radians</li>
- </ul>
- For properties defined in [<a
- href="http://www.w3.org/TR/REC-CSS2/">CSS2</a>], an angle
- unit identifier must be provided. For SVG-specific
- attributes and properties, the angle unit identifier is
- optional. If not provided, the angle value is assumed to be
- in degrees.<br />
- The corresponding SVG DOM interface definition for
- <angle> is an <a
- href="types.html#InterfaceSVGAngle"><span
- class="DOMInterfaceName">SVGAngle</span></a> or an <a
- href="types.html#InterfaceSVGAnimatedAngle"><span
- class="DOMInterfaceName">SVGAnimatedAngle</span></a>.
- </li>
- <li><a id="DataTypeColor"
- class="indexref-basic_data_types::color"/> <span
- class="SVG-Term"><color></span>: The basic type
- <color> is a CSS2-compatible specification for a color
- in the sRGB color space <a
- href="http://www.iec.ch/nr1899.htm">[SRGB]</a>. <color>
- applies to SVG's use of the <a
- href="color.html#ColorProperty"><span
- class="prop-name">'color'</span></a> property and is a
- component of the definitions of properties <a
- href="painting.html#FillProperty"><span
- class="prop-name">'fill'</span></a>, <a
- href="painting.html#StrokeProperty"><span
- class="prop-name">'stroke'</span></a> <a
- href="pservers.html#StopColorProperty"><span
- class="prop-name">'stop-color'</span></a>, <a
- href="color.html#SolidColorProperty"><span
- class="prop-name">'solid-color'</span></a>, <a
- href="filters.html#FloodColorProperty"><span
- class="prop-name">'flood-color'</span></a> and <a
- href="filters.html#LightingColorProperty"><span
- class="prop-name">'lighting-color'</span></a>, which also
- offer optional ICC-based color specifications.<br />
- SVG supports all of the syntax alternatives for
- <color> defined in [ <a
- href="http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color">
- CSS2-color-types</a>], with the exception that SVG contains
- an expanded list of <a
- href="types.html#ColorKeywords">recognized color keywords
- names</a>.<br />
- A <color> is either a keyword (see <a
- href="types.html#ColorKeywords">Recognized color keyword
- names</a>) or a numerical RGB specification.<br />
- In addition to these color keywords, users may specify
- keywords that correspond to the colors used by objects in the
- user's environment. The normative definition of these
- keywords is [<a
- href="http://www.w3.org/TR/REC-CSS2/ui.html#system-colors">CSS2
- system colors</a>].<br />
- The format of an RGB value in hexadecimal notation is a '#'
- immediately followed by either three or six hexadecimal
- characters. The three-digit RGB notation (#rgb) is converted
- into six-digit form (#rrggbb) by replicating digits, not by
- adding zeros. For example, #fb0 expands to #ffbb00. This
- ensures that white (#ffffff) can be specified with the short
- notation (#fff) and removes any dependencies on the color
- depth of the display. The format of an RGB value in the
- functional notation is 'rgb(' followed by a comma-separated
- list of three numerical values (either three integer values
- or three percentage values) followed by ')'. The integer
- value 255 corresponds to 100%, and to F or FF in the
- hexadecimal notation: rgb(255,255,255) = rgb(100%,100%,100%)
- = #FFF. White space characters are allowed around the
- numerical values. All RGB colors are specified in the sRGB
- color space (see <a
- href="http://www.iec.ch/nr1899.htm">[SRGB]</a>). Using sRGB
- provides an unambiguous and objectively measurable definition
- of the color, which can be related to international standards
- (see [ <a
- href="http://www.hike.te.chiba-u.ac.jp/ikeda/CIE/publ/abst/15-2-86.html">
- COLORIMETRY</a>]).<br />
- The corresponding SVG DOM interface definitions for
- <color> are defined in [<a
- href="http://www.w3.org/TR/DOM-Level-2-Style/css.html">DOM2-CSS</a>];
- in particular, see the [ <a
- href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor">
- DOM2-CSS-RGBCOLOR</a>]. SVG's extension to color, including
- the ability to specify ICC-based colors, are represented in
- DOM interface <a href="#InterfaceSVGColor"><span
- class="DOMInterfaceName">SVGColor</span></a>.</li>
- <li><a id="DataTypePaint"
- class="indexref-basic_data_types::paint"/> <span
- class="SVG-Term"><paint></span> : The values for
- properties <a href="painting.html#FillProperty"><span
- class="prop-name">'fill'</span></a> and <a
- href="painting.html#StrokeProperty"><span
- class="prop-name">'stroke'</span></a> are specifications of
- the type of paint to use when filling or stroking a given
- graphics element. The available options and syntax for <span
- class="attr-value"><paint></span> are described in <a
- href="painting.html#SpecifyingPaint">Specifying
- paint</a>.<br />
- Within the SVG DOM, <paint> is represented as an <a
- href="painting.html#InterfaceSVGPaint"><span
- class="DOMInterfaceName">SVGPaint</span></a>.</li>
- <li><a id="DataTypePercentage"
- class="indexref-basic_data_types::percentage"/> <span
- class="SVG-Term"><percentage></span>: The format of a
- percentage value is a <a
- href="types.html#DataTypeNumber"><number></a>
- immediately followed by a '%'. Percentage values are always
- relative to another value, for example a length. Each
- attribute or <a href="intro.html#TermProperty">property</a>
- that allows percentages also defines the reference distance
- measurement to which the percentage refers.<br />
- Within the SVG DOM, a <percentage> is usually
- represented as an <a
- href="types.html#InterfaceSVGLength"><span
- class="DOMInterfaceName">SVGLength</span></a> or an <a
- href="types.html#InterfaceSVGAnimatedLength"><span
- class="DOMInterfaceName">SVGAnimatedLength</span></a>.</li>
- <li><a id="DataTypeTransformList"
- class="indexref-basic_data_types::transform-list"/> <span
- class="SVG-Term"><transform-list></span> : The detailed
- description of the possible values for a
- <transform-list> are detailed in <a
- href="coords.html#TransformAttribute">Modifying the User
- Coordinate System: the transform attribute</a>.<br />
- Within the SVG DOM, <transform-list> is represented as
- an <a href="coords.html#InterfaceSVGTransformList"><span
- class="DOMInterfaceName">SVGTransformList</span></a> or an <a
- href="coords.html#InterfaceSVGAnimatedTransformList"><span
- class="DOMInterfaceName">SVGAnimatedTransformList</span></a>.</li>
- <li><a id="DataTypeURI"
- class="indexref-basic_data_types::URI"/> <span
- class="SVG-Term"><a
- href="types.html#DataTypeURI"><uri></a></span> (Uniform
- Resource Identifiers [URI] references): A URI is the address
- of a resource on the Web. For the specification of URI
- references in SVG, see <a href="struct.html#URIReference">URI
- references</a>.<br />
- Within the SVG DOM, <uri> is represented as a <span
- class="DOMInterfaceName">DOMString</span> or an <a
- href="types.html#InterfaceSVGAnimatedString"><span
- class="DOMInterfaceName">SVGAnimatedString</span></a>.</li>
- <li>
- <a id="DataTypeFrequency"
- class="indexref-basic_data_types::frequency"/> <span
- class="SVG-Term"><frequency></span>: Frequency values
- are used with aural properties. The normative definition of
- frequency values can be found in [<a
- href="http://www.w3.org/TR/REC-CSS2/aural.html">CSS2-AURAL</a>].
- A frequency value is a <number> immediately followed
- by a frequency unit identifier. Frequency unit identifiers
- are:
- <ul>
- <li><span class="attr-value">Hz</span>: Hertz</li>
- <li><span class="attr-value">kHz</span>: kilo Hertz</li>
- </ul>
- Frequency values may not be negative.<br />
- The corresponding SVG DOM interface definitions for
- <frequency> are defined in [<a
- href="http://www.w3.org/TR/DOM-Level-2-Style/css.html">DOM2-CSS</a>].
- </li>
- <li>
- <a id="DataTypeTime"
- class="indexref-basic_data_types::time"/> <span
- class="SVG-Term"><time></span>: A time value is a
- <number> immediately followed by a time unit
- identifier. Time unit identifiers are:
- <ul>
- <li><span class="attr-value">ms</span>: milliseconds</li>
- <li><span class="attr-value">s</span>: seconds</li>
- </ul>
- Time values are used in CSS properties and may not be
- negative.<br />
- The corresponding SVG DOM interface definitions for
- <time> are defined in [<a
- href="http://www.w3.org/TR/DOM-Level-2-Style/css.html">DOM2-CSS</a>].
- </li>
- </ul>
- <br />
- <a id="ColorKeywords" class="indexref-color_keywords"/>
- <h2>4.2 Recognized color keyword names</h2>
- <p>The following is the list of recognized color keywords that
- can be used as a keyword value for data type <a
- href="types.html#DataTypeColor"><color></a>:</p>
- <table summary="color keywords">
- <tr>
- <td>
- <table summary="color keywords part 1">
- <tr>
- <td><img alt="aliceblue color-patch"
- src="images/types/colorchips/aliceblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">aliceblue</span></td>
- <td><span class="color-keyword-value">rgb(240, 248,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="antiquewhite color-patch"
- src="images/types/colorchips/antiquewhite-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">antiquewhite</span></td>
- <td><span class="color-keyword-value">rgb(250, 235,
- 215)</span></td>
- </tr>
- <tr>
- <td><img alt="aqua color-patch"
- src="images/types/colorchips/aqua-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">aqua</span></td>
- <td><span class="color-keyword-value">rgb( 0, 255,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="aquamarine color-patch"
- src="images/types/colorchips/aquamarine-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">aquamarine</span></td>
- <td><span class="color-keyword-value">rgb(127, 255,
- 212)</span></td>
- </tr>
- <tr>
- <td><img alt="azure color-patch"
- src="images/types/colorchips/azure-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">azure</span></td>
- <td><span class="color-keyword-value">rgb(240, 255,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="beige color-patch"
- src="images/types/colorchips/beige-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">beige</span></td>
- <td><span class="color-keyword-value">rgb(245, 245,
- 220)</span></td>
- </tr>
- <tr>
- <td><img alt="bisque color-patch"
- src="images/types/colorchips/bisque-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">bisque</span></td>
- <td><span class="color-keyword-value">rgb(255, 228,
- 196)</span></td>
- </tr>
- <tr>
- <td><img alt="black color-patch"
- src="images/types/colorchips/black-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">black</span></td>
- <td><span class="color-keyword-value">rgb( 0, 0,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="blanchedalmond color-patch"
- src="images/types/colorchips/blanchedalmond-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">blanchedalmond</span></td>
- <td><span class="color-keyword-value">rgb(255, 235,
- 205)</span></td>
- </tr>
- <tr>
- <td><img alt="blue color-patch"
- src="images/types/colorchips/blue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">blue</span></td>
- <td><span class="color-keyword-value">rgb( 0, 0,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="blueviolet color-patch"
- src="images/types/colorchips/blueviolet-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">blueviolet</span></td>
- <td><span class="color-keyword-value">rgb(138, 43,
- 226)</span></td>
- </tr>
- <tr>
- <td><img alt="brown color-patch"
- src="images/types/colorchips/brown-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">brown</span></td>
- <td><span class="color-keyword-value">rgb(165, 42,
- 42)</span></td>
- </tr>
- <tr>
- <td><img alt="burlywood color-patch"
- src="images/types/colorchips/burlywood-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">burlywood</span></td>
- <td><span class="color-keyword-value">rgb(222, 184,
- 135)</span></td>
- </tr>
- <tr>
- <td><img alt="cadetblue color-patch"
- src="images/types/colorchips/cadetblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">cadetblue</span></td>
- <td><span class="color-keyword-value">rgb( 95, 158,
- 160)</span></td>
- </tr>
- <tr>
- <td><img alt="chartreuse color-patch"
- src="images/types/colorchips/chartreuse-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">chartreuse</span></td>
- <td><span class="color-keyword-value">rgb(127, 255,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="chocolate color-patch"
- src="images/types/colorchips/chocolate-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">chocolate</span></td>
- <td><span class="color-keyword-value">rgb(210, 105,
- 30)</span></td>
- </tr>
- <tr>
- <td><img alt="coral color-patch"
- src="images/types/colorchips/coral-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">coral</span></td>
- <td><span class="color-keyword-value">rgb(255, 127,
- 80)</span></td>
- </tr>
- <tr>
- <td><img alt="cornflowerblue color-patch"
- src="images/types/colorchips/cornflowerblue-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">cornflowerblue</span></td>
- <td><span class="color-keyword-value">rgb(100, 149,
- 237)</span></td>
- </tr>
- <tr>
- <td><img alt="cornsilk color-patch"
- src="images/types/colorchips/cornsilk-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">cornsilk</span></td>
- <td><span class="color-keyword-value">rgb(255, 248,
- 220)</span></td>
- </tr>
- <tr>
- <td><img alt="crimson color-patch"
- src="images/types/colorchips/crimson-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">crimson</span></td>
- <td><span class="color-keyword-value">rgb(220, 20,
- 60)</span></td>
- </tr>
- <tr>
- <td><img alt="cyan color-patch"
- src="images/types/colorchips/cyan-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">cyan</span></td>
- <td><span class="color-keyword-value">rgb( 0, 255,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="darkblue color-patch"
- src="images/types/colorchips/darkblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkblue</span></td>
- <td><span class="color-keyword-value">rgb( 0, 0,
- 139)</span></td>
- </tr>
- <tr>
- <td><img alt="darkcyan color-patch"
- src="images/types/colorchips/darkcyan-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkcyan</span></td>
- <td><span class="color-keyword-value">rgb( 0, 139,
- 139)</span></td>
- </tr>
- <tr>
- <td><img alt="darkgoldenrod color-patch"
- src="images/types/colorchips/darkgoldenrod-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkgoldenrod</span></td>
- <td><span class="color-keyword-value">rgb(184, 134,
- 11)</span></td>
- </tr>
- <tr>
- <td><img alt="darkgray color-patch"
- src="images/types/colorchips/darkgray-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkgray</span></td>
- <td><span class="color-keyword-value">rgb(169, 169,
- 169)</span></td>
- </tr>
- <tr>
- <td><img alt="darkgreen color-patch"
- src="images/types/colorchips/darkgreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkgreen</span></td>
- <td><span class="color-keyword-value">rgb( 0, 100,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="darkgrey color-patch"
- src="images/types/colorchips/darkgrey-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkgrey</span></td>
- <td><span class="color-keyword-value">rgb(169, 169,
- 169)</span></td>
- </tr>
- <tr>
- <td><img alt="darkkhaki color-patch"
- src="images/types/colorchips/darkkhaki-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkkhaki</span></td>
- <td><span class="color-keyword-value">rgb(189, 183,
- 107)</span></td>
- </tr>
- <tr>
- <td><img alt="darkmagenta color-patch"
- src="images/types/colorchips/darkmagenta-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkmagenta</span></td>
- <td><span class="color-keyword-value">rgb(139, 0,
- 139)</span></td>
- </tr>
- <tr>
- <td><img alt="darkolivegreen color-patch"
- src="images/types/colorchips/darkolivegreen-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkolivegreen</span></td>
- <td><span class="color-keyword-value">rgb( 85, 107,
- 47)</span></td>
- </tr>
- <tr>
- <td><img alt="darkorange color-patch"
- src="images/types/colorchips/darkorange-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkorange</span></td>
- <td><span class="color-keyword-value">rgb(255, 140,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="darkorchid color-patch"
- src="images/types/colorchips/darkorchid-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkorchid</span></td>
- <td><span class="color-keyword-value">rgb(153, 50,
- 204)</span></td>
- </tr>
- <tr>
- <td><img alt="darkred color-patch"
- src="images/types/colorchips/darkred-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkred</span></td>
- <td><span class="color-keyword-value">rgb(139, 0,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="darksalmon color-patch"
- src="images/types/colorchips/darksalmon-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darksalmon</span></td>
- <td><span class="color-keyword-value">rgb(233, 150,
- 122)</span></td>
- </tr>
- <tr>
- <td><img alt="darkseagreen color-patch"
- src="images/types/colorchips/darkseagreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkseagreen</span></td>
- <td><span class="color-keyword-value">rgb(143, 188,
- 143)</span></td>
- </tr>
- <tr>
- <td><img alt="darkslateblue color-patch"
- src="images/types/colorchips/darkslateblue-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkslateblue</span></td>
- <td><span class="color-keyword-value">rgb( 72, 61,
- 139)</span></td>
- </tr>
- <tr>
- <td><img alt="darkslategray color-patch"
- src="images/types/colorchips/darkslategray-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkslategray</span></td>
- <td><span class="color-keyword-value">rgb( 47, 79,
- 79)</span></td>
- </tr>
- <tr>
- <td><img alt="darkslategrey color-patch"
- src="images/types/colorchips/darkslategrey-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkslategrey</span></td>
- <td><span class="color-keyword-value">rgb( 47, 79,
- 79)</span></td>
- </tr>
- <tr>
- <td><img alt="darkturquoise color-patch"
- src="images/types/colorchips/darkturquoise-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">darkturquoise</span></td>
- <td><span class="color-keyword-value">rgb( 0, 206,
- 209)</span></td>
- </tr>
- <tr>
- <td><img alt="darkviolet color-patch"
- src="images/types/colorchips/darkviolet-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">darkviolet</span></td>
- <td><span class="color-keyword-value">rgb(148, 0,
- 211)</span></td>
- </tr>
- <tr>
- <td><img alt="deeppink color-patch"
- src="images/types/colorchips/deeppink-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">deeppink</span></td>
- <td><span class="color-keyword-value">rgb(255, 20,
- 147)</span></td>
- </tr>
- <tr>
- <td><img alt="deepskyblue color-patch"
- src="images/types/colorchips/deepskyblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">deepskyblue</span></td>
- <td><span class="color-keyword-value">rgb( 0, 191,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="dimgray color-patch"
- src="images/types/colorchips/dimgray-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">dimgray</span></td>
- <td><span class="color-keyword-value">rgb(105, 105,
- 105)</span></td>
- </tr>
- <tr>
- <td><img alt="dimgrey color-patch"
- src="images/types/colorchips/dimgrey-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">dimgrey</span></td>
- <td><span class="color-keyword-value">rgb(105, 105,
- 105)</span></td>
- </tr>
- <tr>
- <td><img alt="dodgerblue color-patch"
- src="images/types/colorchips/dodgerblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">dodgerblue</span></td>
- <td><span class="color-keyword-value">rgb( 30, 144,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="firebrick color-patch"
- src="images/types/colorchips/firebrick-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">firebrick</span></td>
- <td><span class="color-keyword-value">rgb(178, 34,
- 34)</span></td>
- </tr>
- <tr>
- <td><img alt="floralwhite color-patch"
- src="images/types/colorchips/floralwhite-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">floralwhite</span></td>
- <td><span class="color-keyword-value">rgb(255, 250,
- 240)</span></td>
- </tr>
- <tr>
- <td><img alt="forestgreen color-patch"
- src="images/types/colorchips/forestgreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">forestgreen</span></td>
- <td><span class="color-keyword-value">rgb( 34, 139,
- 34)</span></td>
- </tr>
- <tr>
- <td><img alt="fuchsia color-patch"
- src="images/types/colorchips/fuchsia-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">fuchsia</span></td>
- <td><span class="color-keyword-value">rgb(255, 0,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="gainsboro color-patch"
- src="images/types/colorchips/gainsboro-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">gainsboro</span></td>
- <td><span class="color-keyword-value">rgb(220, 220,
- 220)</span></td>
- </tr>
- <tr>
- <td><img alt="ghostwhite color-patch"
- src="images/types/colorchips/ghostwhite-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">ghostwhite</span></td>
- <td><span class="color-keyword-value">rgb(248, 248,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="gold color-patch"
- src="images/types/colorchips/gold-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">gold</span></td>
- <td><span class="color-keyword-value">rgb(255, 215,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="goldenrod color-patch"
- src="images/types/colorchips/goldenrod-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">goldenrod</span></td>
- <td><span class="color-keyword-value">rgb(218, 165,
- 32)</span></td>
- </tr>
- <tr>
- <td><img alt="gray color-patch"
- src="images/types/colorchips/gray-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">gray</span></td>
- <td><span class="color-keyword-value">rgb(128, 128,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="grey color-patch"
- src="images/types/colorchips/grey-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">grey</span></td>
- <td><span class="color-keyword-value">rgb(128, 128,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="green color-patch"
- src="images/types/colorchips/green-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">green</span></td>
- <td><span class="color-keyword-value">rgb( 0, 128,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="greenyellow color-patch"
- src="images/types/colorchips/greenyellow-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">greenyellow</span></td>
- <td><span class="color-keyword-value">rgb(173, 255,
- 47)</span></td>
- </tr>
- <tr>
- <td><img alt="honeydew color-patch"
- src="images/types/colorchips/honeydew-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">honeydew</span></td>
- <td><span class="color-keyword-value">rgb(240, 255,
- 240)</span></td>
- </tr>
- <tr>
- <td><img alt="hotpink color-patch"
- src="images/types/colorchips/hotpink-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">hotpink</span></td>
- <td><span class="color-keyword-value">rgb(255, 105,
- 180)</span></td>
- </tr>
- <tr>
- <td><img alt="indianred color-patch"
- src="images/types/colorchips/indianred-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">indianred</span></td>
- <td><span class="color-keyword-value">rgb(205, 92,
- 92)</span></td>
- </tr>
- <tr>
- <td><img alt="indigo color-patch"
- src="images/types/colorchips/indigo-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">indigo</span></td>
- <td><span class="color-keyword-value">rgb( 75, 0,
- 130)</span></td>
- </tr>
- <tr>
- <td><img alt="ivory color-patch"
- src="images/types/colorchips/ivory-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">ivory</span></td>
- <td><span class="color-keyword-value">rgb(255, 255,
- 240)</span></td>
- </tr>
- <tr>
- <td><img alt="khaki color-patch"
- src="images/types/colorchips/khaki-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">khaki</span></td>
- <td><span class="color-keyword-value">rgb(240, 230,
- 140)</span></td>
- </tr>
- <tr>
- <td><img alt="lavender color-patch"
- src="images/types/colorchips/lavender-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lavender</span></td>
- <td><span class="color-keyword-value">rgb(230, 230,
- 250)</span></td>
- </tr>
- <tr>
- <td><img alt="lavenderblush color-patch"
- src="images/types/colorchips/lavenderblush-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lavenderblush</span></td>
- <td><span class="color-keyword-value">rgb(255, 240,
- 245)</span></td>
- </tr>
- <tr>
- <td><img alt="lawngreen color-patch"
- src="images/types/colorchips/lawngreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lawngreen</span></td>
- <td><span class="color-keyword-value">rgb(124, 252,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="lemonchiffon color-patch"
- src="images/types/colorchips/lemonchiffon-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lemonchiffon</span></td>
- <td><span class="color-keyword-value">rgb(255, 250,
- 205)</span></td>
- </tr>
- <tr>
- <td><img alt="lightblue color-patch"
- src="images/types/colorchips/lightblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightblue</span></td>
- <td><span class="color-keyword-value">rgb(173, 216,
- 230)</span></td>
- </tr>
- <tr>
- <td><img alt="lightcoral color-patch"
- src="images/types/colorchips/lightcoral-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightcoral</span></td>
- <td><span class="color-keyword-value">rgb(240, 128,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="lightcyan color-patch"
- src="images/types/colorchips/lightcyan-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightcyan</span></td>
- <td><span class="color-keyword-value">rgb(224, 255,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="lightgoldenrodyellow color-patch"
- src="images/types/colorchips/lightgoldenrodyellow-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lightgoldenrodyellow</span></td>
- <td><span class="color-keyword-value">rgb(250, 250,
- 210)</span></td>
- </tr>
- <tr>
- <td><img alt="lightgray color-patch"
- src="images/types/colorchips/lightgray-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightgray</span></td>
- <td><span class="color-keyword-value">rgb(211, 211,
- 211)</span></td>
- </tr>
- <tr>
- <td><img alt="lightgreen color-patch"
- src="images/types/colorchips/lightgreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightgreen</span></td>
- <td><span class="color-keyword-value">rgb(144, 238,
- 144)</span></td>
- </tr>
- <tr>
- <td><img alt="lightgrey color-patch"
- src="images/types/colorchips/lightgrey-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightgrey</span></td>
- <td><span class="color-keyword-value">rgb(211, 211,
- 211)</span></td>
- </tr>
- </table>
- </td>
- <td> </td>
- <td>
- <table summary="color keywords part 2">
- <tr>
- <td><img alt="lightpink color-patch"
- src="images/types/colorchips/lightpink-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightpink</span></td>
- <td><span class="color-keyword-value">rgb(255, 182,
- 193)</span></td>
- </tr>
- <tr>
- <td><img alt="lightsalmon color-patch"
- src="images/types/colorchips/lightsalmon-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightsalmon</span></td>
- <td><span class="color-keyword-value">rgb(255, 160,
- 122)</span></td>
- </tr>
- <tr>
- <td><img alt="lightseagreen color-patch"
- src="images/types/colorchips/lightseagreen-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lightseagreen</span></td>
- <td><span class="color-keyword-value">rgb( 32, 178,
- 170)</span></td>
- </tr>
- <tr>
- <td><img alt="lightskyblue color-patch"
- src="images/types/colorchips/lightskyblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightskyblue</span></td>
- <td><span class="color-keyword-value">rgb(135, 206,
- 250)</span></td>
- </tr>
- <tr>
- <td><img alt="lightslategray color-patch"
- src="images/types/colorchips/lightslategray-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lightslategray</span></td>
- <td><span class="color-keyword-value">rgb(119, 136,
- 153)</span></td>
- </tr>
- <tr>
- <td><img alt="lightslategrey color-patch"
- src="images/types/colorchips/lightslategrey-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lightslategrey</span></td>
- <td><span class="color-keyword-value">rgb(119, 136,
- 153)</span></td>
- </tr>
- <tr>
- <td><img alt="lightsteelblue color-patch"
- src="images/types/colorchips/lightsteelblue-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">lightsteelblue</span></td>
- <td><span class="color-keyword-value">rgb(176, 196,
- 222)</span></td>
- </tr>
- <tr>
- <td><img alt="lightyellow color-patch"
- src="images/types/colorchips/lightyellow-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lightyellow</span></td>
- <td><span class="color-keyword-value">rgb(255, 255,
- 224)</span></td>
- </tr>
- <tr>
- <td><img alt="lime color-patch"
- src="images/types/colorchips/lime-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">lime</span></td>
- <td><span class="color-keyword-value">rgb( 0, 255,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="limegreen color-patch"
- src="images/types/colorchips/limegreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">limegreen</span></td>
- <td><span class="color-keyword-value">rgb( 50, 205,
- 50)</span></td>
- </tr>
- <tr>
- <td><img alt="linen color-patch"
- src="images/types/colorchips/linen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">linen</span></td>
- <td><span class="color-keyword-value">rgb(250, 240,
- 230)</span></td>
- </tr>
- <tr>
- <td><img alt="magenta color-patch"
- src="images/types/colorchips/magenta-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">magenta</span></td>
- <td><span class="color-keyword-value">rgb(255, 0,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="maroon color-patch"
- src="images/types/colorchips/maroon-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">maroon</span></td>
- <td><span class="color-keyword-value">rgb(128, 0,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumaquamarine color-patch"
- src="images/types/colorchips/mediumaquamarine-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumaquamarine</span></td>
- <td><span class="color-keyword-value">rgb(102, 205,
- 170)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumblue color-patch"
- src="images/types/colorchips/mediumblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">mediumblue</span></td>
- <td><span class="color-keyword-value">rgb( 0, 0,
- 205)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumorchid color-patch"
- src="images/types/colorchips/mediumorchid-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">mediumorchid</span></td>
- <td><span class="color-keyword-value">rgb(186, 85,
- 211)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumpurple color-patch"
- src="images/types/colorchips/mediumpurple-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">mediumpurple</span></td>
- <td><span class="color-keyword-value">rgb(147, 112,
- 219)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumseagreen color-patch"
- src="images/types/colorchips/mediumseagreen-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumseagreen</span></td>
- <td><span class="color-keyword-value">rgb( 60, 179,
- 113)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumslateblue color-patch"
- src="images/types/colorchips/mediumslateblue-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumslateblue</span></td>
- <td><span class="color-keyword-value">rgb(123, 104,
- 238)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumspringgreen color-patch"
- src="images/types/colorchips/mediumspringgreen-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumspringgreen</span></td>
- <td><span class="color-keyword-value">rgb( 0, 250,
- 154)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumturquoise color-patch"
- src="images/types/colorchips/mediumturquoise-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumturquoise</span></td>
- <td><span class="color-keyword-value">rgb( 72, 209,
- 204)</span></td>
- </tr>
- <tr>
- <td><img alt="mediumvioletred color-patch"
- src="images/types/colorchips/mediumvioletred-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">mediumvioletred</span></td>
- <td><span class="color-keyword-value">rgb(199, 21,
- 133)</span></td>
- </tr>
- <tr>
- <td><img alt="midnightblue color-patch"
- src="images/types/colorchips/midnightblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">midnightblue</span></td>
- <td><span class="color-keyword-value">rgb( 25, 25,
- 112)</span></td>
- </tr>
- <tr>
- <td><img alt="mintcream color-patch"
- src="images/types/colorchips/mintcream-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">mintcream</span></td>
- <td><span class="color-keyword-value">rgb(245, 255,
- 250)</span></td>
- </tr>
- <tr>
- <td><img alt="mistyrose color-patch"
- src="images/types/colorchips/mistyrose-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">mistyrose</span></td>
- <td><span class="color-keyword-value">rgb(255, 228,
- 225)</span></td>
- </tr>
- <tr>
- <td><img alt="moccasin color-patch"
- src="images/types/colorchips/moccasin-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">moccasin</span></td>
- <td><span class="color-keyword-value">rgb(255, 228,
- 181)</span></td>
- </tr>
- <tr>
- <td><img alt="navajowhite color-patch"
- src="images/types/colorchips/navajowhite-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">navajowhite</span></td>
- <td><span class="color-keyword-value">rgb(255, 222,
- 173)</span></td>
- </tr>
- <tr>
- <td><img alt="navy color-patch"
- src="images/types/colorchips/navy-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">navy</span></td>
- <td><span class="color-keyword-value">rgb( 0, 0,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="oldlace color-patch"
- src="images/types/colorchips/oldlace-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">oldlace</span></td>
- <td><span class="color-keyword-value">rgb(253, 245,
- 230)</span></td>
- </tr>
- <tr>
- <td><img alt="olive color-patch"
- src="images/types/colorchips/olive-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">olive</span></td>
- <td><span class="color-keyword-value">rgb(128, 128,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="olivedrab color-patch"
- src="images/types/colorchips/olivedrab-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">olivedrab</span></td>
- <td><span class="color-keyword-value">rgb(107, 142,
- 35)</span></td>
- </tr>
- <tr>
- <td><img alt="orange color-patch"
- src="images/types/colorchips/orange-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">orange</span></td>
- <td><span class="color-keyword-value">rgb(255, 165,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="orangered color-patch"
- src="images/types/colorchips/orangered-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">orangered</span></td>
- <td><span class="color-keyword-value">rgb(255, 69,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="orchid color-patch"
- src="images/types/colorchips/orchid-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">orchid</span></td>
- <td><span class="color-keyword-value">rgb(218, 112,
- 214)</span></td>
- </tr>
- <tr>
- <td><img alt="palegoldenrod color-patch"
- src="images/types/colorchips/palegoldenrod-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">palegoldenrod</span></td>
- <td><span class="color-keyword-value">rgb(238, 232,
- 170)</span></td>
- </tr>
- <tr>
- <td><img alt="palegreen color-patch"
- src="images/types/colorchips/palegreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">palegreen</span></td>
- <td><span class="color-keyword-value">rgb(152, 251,
- 152)</span></td>
- </tr>
- <tr>
- <td><img alt="paleturquoise color-patch"
- src="images/types/colorchips/paleturquoise-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">paleturquoise</span></td>
- <td><span class="color-keyword-value">rgb(175, 238,
- 238)</span></td>
- </tr>
- <tr>
- <td><img alt="palevioletred color-patch"
- src="images/types/colorchips/palevioletred-chip.png"
- width="16" height="16" /></td>
- <td><span
- class="prop-value">palevioletred</span></td>
- <td><span class="color-keyword-value">rgb(219, 112,
- 147)</span></td>
- </tr>
- <tr>
- <td><img alt="papayawhip color-patch"
- src="images/types/colorchips/papayawhip-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">papayawhip</span></td>
- <td><span class="color-keyword-value">rgb(255, 239,
- 213)</span></td>
- </tr>
- <tr>
- <td><img alt="peachpuff color-patch"
- src="images/types/colorchips/peachpuff-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">peachpuff</span></td>
- <td><span class="color-keyword-value">rgb(255, 218,
- 185)</span></td>
- </tr>
- <tr>
- <td><img alt="peru color-patch"
- src="images/types/colorchips/peru-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">peru</span></td>
- <td><span class="color-keyword-value">rgb(205, 133,
- 63)</span></td>
- </tr>
- <tr>
- <td><img alt="pink color-patch"
- src="images/types/colorchips/pink-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">pink</span></td>
- <td><span class="color-keyword-value">rgb(255, 192,
- 203)</span></td>
- </tr>
- <tr>
- <td><img alt="plum color-patch"
- src="images/types/colorchips/plum-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">plum</span></td>
- <td><span class="color-keyword-value">rgb(221, 160,
- 221)</span></td>
- </tr>
- <tr>
- <td><img alt="powderblue color-patch"
- src="images/types/colorchips/powderblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">powderblue</span></td>
- <td><span class="color-keyword-value">rgb(176, 224,
- 230)</span></td>
- </tr>
- <tr>
- <td><img alt="purple color-patch"
- src="images/types/colorchips/purple-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">purple</span></td>
- <td><span class="color-keyword-value">rgb(128, 0,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="red color-patch"
- src="images/types/colorchips/red-chip.png" width="16"
- height="16" /></td>
- <td><span class="prop-value">red</span></td>
- <td><span class="color-keyword-value">rgb(255, 0,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="rosybrown color-patch"
- src="images/types/colorchips/rosybrown-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">rosybrown</span></td>
- <td><span class="color-keyword-value">rgb(188, 143,
- 143)</span></td>
- </tr>
- <tr>
- <td><img alt="royalblue color-patch"
- src="images/types/colorchips/royalblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">royalblue</span></td>
- <td><span class="color-keyword-value">rgb( 65, 105,
- 225)</span></td>
- </tr>
- <tr>
- <td><img alt="saddlebrown color-patch"
- src="images/types/colorchips/saddlebrown-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">saddlebrown</span></td>
- <td><span class="color-keyword-value">rgb(139, 69,
- 19)</span></td>
- </tr>
- <tr>
- <td><img alt="salmon color-patch"
- src="images/types/colorchips/salmon-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">salmon</span></td>
- <td><span class="color-keyword-value">rgb(250, 128,
- 114)</span></td>
- </tr>
- <tr>
- <td><img alt="sandybrown color-patch"
- src="images/types/colorchips/sandybrown-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">sandybrown</span></td>
- <td><span class="color-keyword-value">rgb(244, 164,
- 96)</span></td>
- </tr>
- <tr>
- <td><img alt="seagreen color-patch"
- src="images/types/colorchips/seagreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">seagreen</span></td>
- <td><span class="color-keyword-value">rgb( 46, 139,
- 87)</span></td>
- </tr>
- <tr>
- <td><img alt="seashell color-patch"
- src="images/types/colorchips/seashell-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">seashell</span></td>
- <td><span class="color-keyword-value">rgb(255, 245,
- 238)</span></td>
- </tr>
- <tr>
- <td><img alt="sienna color-patch"
- src="images/types/colorchips/sienna-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">sienna</span></td>
- <td><span class="color-keyword-value">rgb(160, 82,
- 45)</span></td>
- </tr>
- <tr>
- <td><img alt="silver color-patch"
- src="images/types/colorchips/silver-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">silver</span></td>
- <td><span class="color-keyword-value">rgb(192, 192,
- 192)</span></td>
- </tr>
- <tr>
- <td><img alt="skyblue color-patch"
- src="images/types/colorchips/skyblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">skyblue</span></td>
- <td><span class="color-keyword-value">rgb(135, 206,
- 235)</span></td>
- </tr>
- <tr>
- <td><img alt="slateblue color-patch"
- src="images/types/colorchips/slateblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">slateblue</span></td>
- <td><span class="color-keyword-value">rgb(106, 90,
- 205)</span></td>
- </tr>
- <tr>
- <td><img alt="slategray color-patch"
- src="images/types/colorchips/slategray-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">slategray</span></td>
- <td><span class="color-keyword-value">rgb(112, 128,
- 144)</span></td>
- </tr>
- <tr>
- <td><img alt="slategrey color-patch"
- src="images/types/colorchips/slategrey-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">slategrey</span></td>
- <td><span class="color-keyword-value">rgb(112, 128,
- 144)</span></td>
- </tr>
- <tr>
- <td><img alt="snow color-patch"
- src="images/types/colorchips/snow-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">snow</span></td>
- <td><span class="color-keyword-value">rgb(255, 250,
- 250)</span></td>
- </tr>
- <tr>
- <td><img alt="springgreen color-patch"
- src="images/types/colorchips/springgreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">springgreen</span></td>
- <td><span class="color-keyword-value">rgb( 0, 255,
- 127)</span></td>
- </tr>
- <tr>
- <td><img alt="steelblue color-patch"
- src="images/types/colorchips/steelblue-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">steelblue</span></td>
- <td><span class="color-keyword-value">rgb( 70, 130,
- 180)</span></td>
- </tr>
- <tr>
- <td><img alt="tan color-patch"
- src="images/types/colorchips/tan-chip.png" width="16"
- height="16" /></td>
- <td><span class="prop-value">tan</span></td>
- <td><span class="color-keyword-value">rgb(210, 180,
- 140)</span></td>
- </tr>
- <tr>
- <td><img alt="teal color-patch"
- src="images/types/colorchips/teal-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">teal</span></td>
- <td><span class="color-keyword-value">rgb( 0, 128,
- 128)</span></td>
- </tr>
- <tr>
- <td><img alt="thistle color-patch"
- src="images/types/colorchips/thistle-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">thistle</span></td>
- <td><span class="color-keyword-value">rgb(216, 191,
- 216)</span></td>
- </tr>
- <tr>
- <td><img alt="tomato color-patch"
- src="images/types/colorchips/tomato-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">tomato</span></td>
- <td><span class="color-keyword-value">rgb(255, 99,
- 71)</span></td>
- </tr>
- <tr>
- <td><img alt="turquoise color-patch"
- src="images/types/colorchips/turquoise-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">turquoise</span></td>
- <td><span class="color-keyword-value">rgb( 64, 224,
- 208)</span></td>
- </tr>
- <tr>
- <td><img alt="violet color-patch"
- src="images/types/colorchips/violet-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">violet</span></td>
- <td><span class="color-keyword-value">rgb(238, 130,
- 238)</span></td>
- </tr>
- <tr>
- <td><img alt="wheat color-patch"
- src="images/types/colorchips/wheat-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">wheat</span></td>
- <td><span class="color-keyword-value">rgb(245, 222,
- 179)</span></td>
- </tr>
- <tr>
- <td><img alt="white color-patch"
- src="images/types/colorchips/white-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">white</span></td>
- <td><span class="color-keyword-value">rgb(255, 255,
- 255)</span></td>
- </tr>
- <tr>
- <td><img alt="whitesmoke color-patch"
- src="images/types/colorchips/whitesmoke-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">whitesmoke</span></td>
- <td><span class="color-keyword-value">rgb(245, 245,
- 245)</span></td>
- </tr>
- <tr>
- <td><img alt="yellow color-patch"
- src="images/types/colorchips/yellow-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">yellow</span></td>
- <td><span class="color-keyword-value">rgb(255, 255,
- 0)</span></td>
- </tr>
- <tr>
- <td><img alt="yellowgreen color-patch"
- src="images/types/colorchips/yellowgreen-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value">yellowgreen</span></td>
- <td><span class="color-keyword-value">rgb(154, 205,
- 50)</span></td>
- </tr>
- <tr>
- <td><img alt="blank entry"
- src="images/types/colorchips/blank-chip.png"
- width="16" height="16" /></td>
- <td><span class="prop-value"> </span></td>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <br />
- <a id="BasicDOMInterfaces"/>
- <h2>4.3 Basic DOM interfaces</h2>
- <!-- AUTO-GENERATED DOM INTERFACES GO HERE -->
- <p>The following interfaces are defined below: <a
- href="#InterfaceSVGElement">SVGElement</a>, <a
- href="#InterfaceSVGAnimatedBoolean">SVGAnimatedBoolean</a>, <a
- href="#InterfaceSVGAnimatedString">SVGAnimatedString</a>, <a
- href="#InterfaceSVGStringList">SVGStringList</a>, <a
- href="#InterfaceSVGAnimatedEnumeration">SVGAnimatedEnumeration</a>,
- <a href="#InterfaceSVGAnimatedInteger">SVGAnimatedInteger</a>,
- <a href="#InterfaceSVGNumber">SVGNumber</a>, <a
- href="#InterfaceSVGAnimatedNumber">SVGAnimatedNumber</a>, <a
- href="#InterfaceSVGNumberList">SVGNumberList</a>, <a
- href="#InterfaceSVGAnimatedNumberList">SVGAnimatedNumberList</a>,
- <a href="#InterfaceSVGLength">SVGLength</a>, <a
- href="#InterfaceSVGAnimatedLength">SVGAnimatedLength</a>, <a
- href="#InterfaceSVGLengthList">SVGLengthList</a>, <a
- href="#InterfaceSVGAnimatedLengthList">SVGAnimatedLengthList</a>,
- <a href="#InterfaceSVGAngle">SVGAngle</a>, <a
- href="#InterfaceSVGAnimatedAngle">SVGAnimatedAngle</a>, <a
- href="#InterfaceSVGColor">SVGColor</a>, <a
- href="#InterfaceSVGICCColor">SVGICCColor</a>, <a
- href="#InterfaceSVGRect">SVGRect</a>, <a
- href="#InterfaceSVGAnimatedRect">SVGAnimatedRect</a>, <a
- href="#InterfaceSVGUnitTypes">SVGUnitTypes</a>, <a
- href="#InterfaceSVGStylable">SVGStylable</a>, <a
- href="#InterfaceSVGLocatable">SVGLocatable</a>, <a
- href="#InterfaceSVGTransformable">SVGTransformable</a>, <a
- href="#InterfaceSVGTests">SVGTests</a>, <a
- href="#InterfaceSVGLangSpace">SVGLangSpace</a>, <a
- href="#InterfaceSVGExternalResourcesRequired">SVGExternalResourcesRequired</a>,
- <a href="#InterfaceSVGFitToViewBox">SVGFitToViewBox</a>, <a
- href="#InterfaceSVGZoomAndPan">SVGZoomAndPan</a>, <a
- href="#InterfaceSVGViewSpec">SVGViewSpec</a>, <a
- href="#InterfaceSVGURIReference">SVGURIReference</a>, <a
- href="#InterfaceSVGCSSRule">SVGCSSRule</a>, <a
- href="#InterfaceSVGRenderingIntent">SVGRenderingIntent</a>.</p>
- <br />
- <a id="InterfaceSVGElement"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGElement</span></h3>
- <p>All of the SVG DOM interfaces that correspond directly to
- elements in the SVG language (e.g., the <span
- class="DOMInterfaceName">SVGPathElement</span> interface
- corresponds directly to the <a
- href="paths.html#PathElement"><span
- class="element-name">'path'</span></a> element in the language)
- are derivative from base class <span
- class="DOMInterfaceName">SVGElement</span>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGElement : Element {
- attribute DOMString id;
- // raises DOMException on setting
- attribute DOMString xmlbase;
- // raises DOMException on setting
- readonly attribute SVGSVGElement ownerSVGElement;
- readonly attribute SVGElement viewportElement;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>id</span></dt>
- <dd>
- The value of the <a
- href="struct.html#IDAttribute"><span
- class="attr-name">id</span></a> attribute on the given
- element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>xmlbase</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">xml:base</span> on the given element.
-
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGSVGElement</span> <span
- class='dom-attr-name'>ownerSVGElement</span></dt>
- <dd>The nearest ancestor <span
- class="element-name">'svg'</span> element. Null if the
- given element is the outermost <span
- class="element-name">'svg'</span> element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGElement</span> <span
- class='dom-attr-name'>viewportElement</span></dt>
- <dd>The element which established the current viewport.
- Often, the nearest ancestor <span
- class="element-name">'svg'</span> element. Null if the
- given element is the outermost <span
- class="element-name">'svg'</span> element.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedBoolean"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedBoolean</span></h3>
- Used for attributes of type boolean which can be animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedBoolean {
- attribute boolean baseVal;
- // raises DOMException on setting
- readonly attribute boolean animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>boolean</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>
- The base value of the given attribute before applying
- any animations.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>boolean</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedString"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedString</span></h3>
- Used for attributes of type DOMString which can be animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedString {
- attribute DOMString baseVal;
- // raises DOMException on setting
- readonly attribute DOMString animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>
- The base value of the given attribute before applying
- any animations.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGStringList"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGStringList</span></h3>
- <p>This interface defines a list of <span
- class="DOMInterfaceName">DOMString</span> objects.</p>
- <p><span class="DOMInterfaceName">SVGStringList</span> has the
- same attributes and methods as other SVGxxxList interfaces.
- Implementers may consider using a single base class to
- implement the various SVGxxxList interfaces.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGStringList {
- readonly attribute unsigned long numberOfItems;
- void clear ( )
- raises( DOMException );
- DOMString initialize ( in DOMString newItem )
- raises( DOMException, SVGException );
- DOMString getItem ( in unsigned long index )
- raises( DOMException );
- DOMString insertItemBefore ( in DOMString newItem, in unsigned long index )
- raises( DOMException, SVGException );
- DOMString replaceItem ( in DOMString newItem, in unsigned long index )
- raises( DOMException, SVGException );
- DOMString removeItem ( in unsigned long index )
- raises( DOMException );
- DOMString appendItem ( in DOMString newItem )
- raises( DOMException, SVGException );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned long</span> <span
- class='dom-attr-name'>numberOfItems</span></dt>
- <dd>The number of items in the list.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-method-name'>clear</span></dt>
- <dd>
- Clears all existing current items from the list, with
- the result being an empty list.
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>initialize</span></dt>
- <dd>
- Clears all existing current items from the list and
- re-initializes the list to hold the single item
- specified by the parameter.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which should become the only
- member of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The item being inserted into the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>getItem</span></dt>
- <dd>
- Returns the specified item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item from the list which
- is to be returned. The first item is number
- 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The selected item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>insertItemBefore</span></dt>
- <dd>
- Inserts a new item into the list at the specified
- position. The first item is number 0. If newItem is
- already in a list, it is removed from its previous list
- before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item before which the new
- item is to be inserted. The first item is
- number 0.<br />
- If the index is equal to 0, then the new item
- is inserted at the front of the list. If the
- index is greater than or equal to
- numberOfItems, then the new item is appended to
- the end of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>replaceItem</span></dt>
- <dd>
- Replaces an existing item in the list with a new item.
- If newItem is already in a list, it is removed from its
- previous list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- replaced. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>removeItem</span></dt>
- <dd>
- Removes an existing item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- removed. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The removed item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>appendItem</span></dt>
- <dd>
- Inserts a new item at the end of the list. If newItem
- is already in a list, it is removed from its previous
- list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">DOMString</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedEnumeration"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedEnumeration</span></h3>
- Used for attributes whose value must be a constant from a
- particular enumeration and which can be animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedEnumeration {
- attribute unsigned short baseVal;
- // raises DOMException on setting
- readonly attribute unsigned short animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>unsigned short</span>
- <span class='dom-attr-name'>baseVal</span></dt>
- <dd>
- The base value of the given attribute before applying
- any animations.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned short</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedInteger"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedInteger</span></h3>
- Used for attributes of basic type 'integer' which can be
- animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedInteger {
- attribute long baseVal;
- // raises DOMException on setting
- readonly attribute long animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>long</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>
- The base value of the given attribute before applying
- any animations.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>long</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGNumber"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGNumber</span></h3>
- Used for attributes of basic type 'number'.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGNumber {
- attribute float value;
- // raises DOMException on setting
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>value</span></dt>
- <dd>
- The value of the given attribute.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedNumber"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedNumber</span></h3>
- Used for attributes of basic type 'number' which can be
- animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedNumber {
- attribute float baseVal;
- // raises DOMException on setting
- readonly attribute float animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>
- The base value of the given attribute before applying
- any animations.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGNumberList"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGNumberList</span></h3>
- <p>This interface defines a list of <span
- class="DOMInterfaceName">SVGNumber</span> objects.</p>
- <p><span class="DOMInterfaceName">SVGNumberList</span> has the
- same attributes and methods as other SVGxxxList interfaces.
- Implementers may consider using a single base class to
- implement the various SVGxxxList interfaces.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGNumberList {
- readonly attribute unsigned long numberOfItems;
- void clear ( )
- raises( DOMException );
- SVGNumber initialize ( in SVGNumber newItem )
- raises( DOMException, SVGException );
- SVGNumber getItem ( in unsigned long index )
- raises( DOMException );
- SVGNumber insertItemBefore ( in SVGNumber newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGNumber replaceItem ( in SVGNumber newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGNumber removeItem ( in unsigned long index )
- raises( DOMException );
- SVGNumber appendItem ( in SVGNumber newItem )
- raises( DOMException, SVGException );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned long</span> <span
- class='dom-attr-name'>numberOfItems</span></dt>
- <dd>The number of items in the list.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-method-name'>clear</span></dt>
- <dd>
- Clears all existing current items from the list, with
- the result being an empty list.
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>initialize</span></dt>
- <dd>
- Clears all existing current items from the list and
- re-initializes the list to hold the single item
- specified by the parameter.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGNumber</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which should become the only
- member of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The item being inserted into the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>getItem</span></dt>
- <dd>
- Returns the specified item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item from the list which
- is to be returned. The first item is number
- 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The selected item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>insertItemBefore</span></dt>
- <dd>
- Inserts a new item into the list at the specified
- position. The first item is number 0. If newItem is
- already in a list, it is removed from its previous list
- before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGNumber</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item before which the new
- item is to be inserted. The first item is
- number 0.<br />
- If the index is equal to 0, then the new item
- is inserted at the front of the list. If the
- index is greater than or equal to
- numberOfItems, then the new item is appended to
- the end of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>replaceItem</span></dt>
- <dd>
- Replaces an existing item in the list with a new item.
- If newItem is already in a list, it is removed from its
- previous list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGNumber</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- replaced. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>removeItem</span></dt>
- <dd>
- Removes an existing item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- removed. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The removed item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>appendItem</span></dt>
- <dd>
- Inserts a new item at the end of the list. If newItem
- is already in a list, it is removed from its previous
- list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGNumber</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGNumber</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedNumberList"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedNumberList</span></h3>
- Used for attributes which take a list of numbers and which can
- be animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedNumberList {
- readonly attribute SVGNumberList baseVal;
- readonly attribute SVGNumberList animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGNumberList</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>The base value of the given attribute before applying
- any animations.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGNumberList</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- then this attribute contains the current animated value
- of the attribute or property, and both the object itself
- and its contents are readonly. If the given attribute or
- property is not currently being animated, then this
- attribute contains the same value as 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGLength"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGLength</span></h3>
- <p>The <span class="DOMInterfaceName">SVGLength</span>
- interface corresponds to the <span
- class="attr-value"><length></span> basic data type.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGLength {
- // Length Unit Types
- const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0;
- const unsigned short SVG_LENGTHTYPE_NUMBER = 1;
- const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2;
- const unsigned short SVG_LENGTHTYPE_EMS = 3;
- const unsigned short SVG_LENGTHTYPE_EXS = 4;
- const unsigned short SVG_LENGTHTYPE_PX = 5;
- const unsigned short SVG_LENGTHTYPE_CM = 6;
- const unsigned short SVG_LENGTHTYPE_MM = 7;
- const unsigned short SVG_LENGTHTYPE_IN = 8;
- const unsigned short SVG_LENGTHTYPE_PT = 9;
- const unsigned short SVG_LENGTHTYPE_PC = 10;
- readonly attribute unsigned short unitType;
- attribute float value;
- // raises DOMException on setting
- attribute float valueInSpecifiedUnits;
- // raises DOMException on setting
- attribute DOMString valueAsString;
- // raises DOMException on setting
- void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
- void convertToSpecifiedUnits ( in unsigned short unitType );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Length Unit Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The unit type is not one of
- predefined unit types. It is invalid to attempt to
- define a new value of this type or to attempt to
- switch an existing value to this type.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_NUMBER</td>
- <td>
- </td>
- <td valign='top'>No unit type was provided (i.e., a
- unitless value was specified), which indicates a
- value in user units.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_PERCENTAGE</td>
- <td>
- </td>
- <td valign='top'>A percentage value was
- specified.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_EMS</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "em" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_EXS</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "ex" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_PX</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "px" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_CM</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "cm" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_MM</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "mm" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_IN</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "in" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_PT</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "pt" units defined in CSS2.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_LENGTHTYPE_PC</td>
- <td>
- </td>
- <td valign='top'>A value was specified using the
- "pc" units defined in CSS2.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned short</span> <span
- class='dom-attr-name'>unitType</span></dt>
- <dd>The type of the value as specified by one of the
- constants specified above.</dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>value</span></dt>
- <dd>
- The value as an floating point value, in user units.
- Setting this attribute will cause valueInSpecifiedUnits
- and valueAsString to be updated automatically to
- reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>valueInSpecifiedUnits</span></dt>
- <dd>
- The value as an floating point value, in the units
- expressed by unitType. Setting this attribute will
- cause value and valueAsString to be updated
- automatically to reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>valueAsString</span></dt>
- <dd>
- The value as a string value, in the units expressed by
- unitType. Setting this attribute will cause value and
- valueInSpecifiedUnits to be updated automatically to
- reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span
- class='dom-method-name'>newValueSpecifiedUnits</span></dt>
- <dd>
- Reset the value as a number with an associated
- unitType, thereby replacing the values for all of the
- attributes on the object.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned
- short</span> <span
- class="dom-parameter-name">unitType</span></td>
- <td>
- </td>
- <td>The unitType for the value (e.g.,
- SVG_LENGTHTYPE_MM).</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">float</span> <span
- class="dom-parameter-name">valueInSpecifiedUnits</span></td>
- <td>
- </td>
- <td>The new value.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>convertToSpecifiedUnits</span></dt>
- <dd>
- Preserve the same underlying stored value, but reset
- the stored unit identifier to the given unitType.
- Object attributes unitType, valueAsSpecified and
- valueAsString might be modified as a result of this
- method. For example, if the original value were "0.5cm"
- and the method was invoked to convert to millimeters,
- then the unitType would be changed to
- SVG_LENGTHTYPE_MM, valueAsSpecified would be changed to
- the numeric value 5 and valueAsString would be changed
- to "5mm".
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned
- short</span> <span
- class="dom-parameter-name">unitType</span></td>
- <td>
- </td>
- <td>The unitType to switch to (e.g.,
- SVG_LENGTHTYPE_MM).</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedLength"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedLength</span></h3>
- Used for attributes of basic type 'length' which can be
- animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedLength {
- readonly attribute SVGLength baseVal;
- readonly attribute SVGLength animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGLength</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>The base value of the given attribute before applying
- any animations.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGLength</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property, and both the object itself and its contents are
- readonly. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGLengthList"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGLengthList</span></h3>
- <p>This interface defines a list of <span
- class="DOMInterfaceName">SVGLength</span> objects.</p>
- <p><span class="DOMInterfaceName">SVGLengthList</span> has the
- same attributes and methods as other SVGxxxList interfaces.
- Implementers may consider using a single base class to
- implement the various SVGxxxList interfaces.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGLengthList {
- readonly attribute unsigned long numberOfItems;
- void clear ( )
- raises( DOMException );
- SVGLength initialize ( in SVGLength newItem )
- raises( DOMException, SVGException );
- SVGLength getItem ( in unsigned long index )
- raises( DOMException );
- SVGLength insertItemBefore ( in SVGLength newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGLength replaceItem ( in SVGLength newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGLength removeItem ( in unsigned long index )
- raises( DOMException );
- SVGLength appendItem ( in SVGLength newItem )
- raises( DOMException, SVGException );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned long</span> <span
- class='dom-attr-name'>numberOfItems</span></dt>
- <dd>The number of items in the list.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-method-name'>clear</span></dt>
- <dd>
- Clears all existing current items from the list, with
- the result being an empty list.
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>initialize</span></dt>
- <dd>
- Clears all existing current items from the list and
- re-initializes the list to hold the single item
- specified by the parameter.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGLength</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which should become the only
- member of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The item being inserted into the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>getItem</span></dt>
- <dd>
- Returns the specified item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item from the list which
- is to be returned. The first item is number
- 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The selected item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>insertItemBefore</span></dt>
- <dd>
- Inserts a new item into the list at the specified
- position. The first item is number 0. If newItem is
- already in a list, it is removed from its previous list
- before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGLength</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item before which the new
- item is to be inserted. The first item is
- number 0.<br />
- If the index is equal to 0, then the new item
- is inserted at the front of the list. If the
- index is greater than or equal to
- numberOfItems, then the new item is appended to
- the end of the list.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>replaceItem</span></dt>
- <dd>
- Replaces an existing item in the list with a new item.
- If newItem is already in a list, it is removed from its
- previous list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGLength</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- replaced. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>removeItem</span></dt>
- <dd>
- Removes an existing item from the list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned long</span>
- <span
- class="dom-parameter-name">index</span></td>
- <td>
- </td>
- <td>The index of the item which is to be
- removed. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The removed item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- <div>
- INDEX_SIZE_ERR: Raised if the index number
- is negative or greater than or equal to
- numberOfItems.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>appendItem</span></dt>
- <dd>
- Inserts a new item at the end of the list. If newItem
- is already in a list, it is removed from its previous
- list before it is inserted into this list.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGLength</span>
- <span
- class="dom-parameter-name">newItem</span></td>
- <td>
- </td>
- <td>The item which is to be inserted into the
- list. The first item is number 0.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGLength</span></td>
- <td>
- </td>
- <td>The inserted item.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised when
- the list cannot be modified.
- </div>
- </td>
- </tr>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_WRONG_TYPE_ERR: Raised if parameter
- newItem is the wrong type of object for the
- given list.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedLengthList"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedLengthList</span></h3>
- Used for attributes of type SVGLengthList which can be
- animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedLengthList {
- readonly attribute SVGLengthList baseVal;
- readonly attribute SVGLengthList animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGLengthList</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>The base value of the given attribute before applying
- any animations.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGLengthList</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property, and both the object itself and its contents are
- readonly. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAngle"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAngle</span></h3>
- <p>The <span class="DOMInterfaceName">SVGAngle</span> interface
- corresponds to the <span
- class="attr-value"><angle></span> basic data type.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAngle {
- // Angle Unit Types
- const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
- const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
- const unsigned short SVG_ANGLETYPE_DEG = 2;
- const unsigned short SVG_ANGLETYPE_RAD = 3;
- const unsigned short SVG_ANGLETYPE_GRAD = 4;
- readonly attribute unsigned short unitType;
- attribute float value;
- // raises DOMException on setting
- attribute float valueInSpecifiedUnits;
- // raises DOMException on setting
- attribute DOMString valueAsString;
- // raises DOMException on setting
- void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
- void convertToSpecifiedUnits ( in unsigned short unitType );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Angle Unit Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>SVG_ANGLETYPE_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The unit type is not one of
- predefined unit types. It is invalid to attempt to
- define a new value of this type or to attempt to
- switch an existing value to this type.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ANGLETYPE_UNSPECIFIED</td>
- <td>
- </td>
- <td valign='top'>No unit type was provided (i.e., a
- unitless value was specified). For angles, a
- unitless value is treated the same as if degrees
- were specified.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ANGLETYPE_DEG</td>
- <td>
- </td>
- <td valign='top'>The unit type was explicitly set
- to degrees.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ANGLETYPE_RAD</td>
- <td>
- </td>
- <td valign='top'>The unit type is radians.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ANGLETYPE_GRAD</td>
- <td>
- </td>
- <td valign='top'>The unit type is grads.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned short</span> <span
- class='dom-attr-name'>unitType</span></dt>
- <dd>The type of the value as specified by one of the
- constants specified above.</dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>value</span></dt>
- <dd>
- The angle value as a floating point value, in degrees.
- Setting this attribute will cause valueInSpecifiedUnits
- and valueAsString to be updated automatically to
- reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>valueInSpecifiedUnits</span></dt>
- <dd>
- The angle value as a floating point value, in the units
- expressed by unitType. Setting this attribute will
- cause value and valueAsString to be updated
- automatically to reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>valueAsString</span></dt>
- <dd>
- The angle value as a string value, in the units
- expressed by unitType. Setting this attribute will
- cause value and valueInSpecifiedUnits to be updated
- automatically to reflect this setting.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span
- class='dom-method-name'>newValueSpecifiedUnits</span></dt>
- <dd>
- Reset the value as a number with an associated
- unitType, thereby replacing the values for all of the
- attributes on the object.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned
- short</span> <span
- class="dom-parameter-name">unitType</span></td>
- <td>
- </td>
- <td>The unitType for the angle value (e.g.,
- SVG_ANGLETYPE_DEG).</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">float</span> <span
- class="dom-parameter-name">valueInSpecifiedUnits</span></td>
- <td>
- </td>
- <td>The angle value.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>convertToSpecifiedUnits</span></dt>
- <dd>
- Preserve the same underlying stored value, but reset
- the stored unit identifier to the given unitType.
- Object attributes unitType, valueAsSpecified and
- valueAsString might be modified as a result of this
- method.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned
- short</span> <span
- class="dom-parameter-name">unitType</span></td>
- <td>
- </td>
- <td>The unitType to switch to (e.g.,
- SVG_ANGLETYPE_DEG).</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedAngle"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedAngle</span></h3>
- Corresponds to all properties and attributes whose values can
- be basic type 'angle' and which are animatable.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedAngle {
- readonly attribute SVGAngle baseVal;
- readonly attribute SVGAngle animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAngle</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>The base value of the given attribute before applying
- any animations.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAngle</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property, and both the object itself and its contents are
- readonly. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGColor"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGColor</span></h3>
- <p>The <span class="DOMInterfaceName">SVGColor</span> interface
- corresponds to color value definition for properties <a
- href="pservers.html#StopColorProperty"><span
- class="prop-name">'stop-color'</span></a>, <a
- href="filters.html#FloodColorProperty"><span
- class="prop-name">'flood-color'</span></a> and <a
- href="filters.html#LightingColorProperty"><span
- class="prop-name">'lighting-color'</span></a> and is a base
- class for interface <a
- href="painting.html#InterfaceSVGPaint"><span
- class="DOMInterfaceName">SVGPaint</span></a>. It incorporates
- SVG's extended notion of color, which incorporates ICC-based
- color specifications.</p>
- <p>Interface <span class="DOMInterfaceName">SVGColor</span>
- does <em>not</em> correspond to the <span
- class="attr-value"><color></span> basic data type. For
- the <span class="attr-value"><color></span> basic data
- type, the applicable DOM interfaces are defined in [<a
- href="refs.html#ref-DOM2-CSS">DOM2-CSS</a>]; in particular, see
- the [<a
- href="refs.html#ref-DOM2-CSS-RGBCOLOR">DOM2-CSS-RGBCOLOR</a>].</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGColor : css::CSSValue {
- // Color Types
- const unsigned short SVG_COLORTYPE_UNKNOWN = 0;
- const unsigned short SVG_COLORTYPE_RGBCOLOR = 1;
- const unsigned short SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
- const unsigned short SVG_COLORTYPE_CURRENTCOLOR = 3;
- readonly attribute unsigned short colorType;
- readonly attribute css::RGBColor rgbColor;
- readonly attribute SVGICCColor iccColor;
- void setRGBColor ( in DOMString rgbColor )
- raises( SVGException );
- void setRGBColorICCColor ( in DOMString rgbColor, in DOMString iccColor )
- raises( SVGException );
- void setColor ( in unsigned short colorType, in DOMString rgbColor, in DOMString iccColor )
- raises( SVGException );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Color Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>SVG_COLORTYPE_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The color type is not one of
- predefined types. It is invalid to attempt to
- define a new value of this type or to attempt to
- switch an existing value to this type.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_COLORTYPE_RGBCOLOR</td>
- <td>
- </td>
- <td valign='top'>An sRGB color has been specified
- without an alternative ICC color
- specification.</td>
- </tr>
- <tr>
- <td valign='top'>
- SVG_COLORTYPE_RGBCOLOR_ICCCOLOR</td>
- <td>
- </td>
- <td valign='top'>An sRGB color has been specified
- along with an alternative ICC color
- specification.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_COLORTYPE_CURRENTCOLOR</td>
- <td>
- </td>
- <td valign='top'>Corresponds to when keyword
- 'currentColor' has been specified.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>unsigned short</span> <span
- class='dom-attr-name'>colorType</span></dt>
- <dd>The type of the value as specified by one of the
- constants specified above.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>css::RGBColor</span> <span
- class='dom-attr-name'>rgbColor</span></dt>
- <dd>The color specified in the sRGB color space.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGICCColor</span> <span
- class='dom-attr-name'>iccColor</span></dt>
- <dd>The alternate ICC color specification.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-method-name'>setRGBColor</span></dt>
- <dd>
- Modifies the color value to be the specified sRGB color
- without an alternate ICC color specification.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">rgbColor</span></td>
- <td>
- </td>
- <td>The new color value.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_INVALID_VALUE_ERR: Raised if one of the
- parameters has an invalid value.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>setRGBColorICCColor</span></dt>
- <dd>
- Modifies the color value to be the specified sRGB color
- with an alternate ICC color specification.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">rgbColor</span></td>
- <td>
- </td>
- <td>The new color value.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">iccColor</span></td>
- <td>
- </td>
- <td>The alternate ICC color specification.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_INVALID_VALUE_ERR: Raised if one of the
- parameters has an invalid value.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>setColor</span></dt>
- <dd>
- Sets the colorType as specified by the parameters. If
- <code>colorType</code> requires an RGBColor, then
- <code>rgbColor</code> must be a valid RGBColor object;
- otherwise, <code>rgbColor</code> must be null. If
- <code>colorType</code> requires an SVGICCColor, then
- <code>iccColor</code> must be a valid SVGICCColor
- object; otherwise, <code>iccColor</code> must be null.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">unsigned
- short</span> <span
- class="dom-parameter-name">colorType</span></td>
- <td>
- </td>
- <td>One of the defined constants for <span
- class="dom-attr-name">colorType</span>.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">rgbColor</span></td>
- <td>
- </td>
- <td>The specification of an sRGB color, or
- null.</td>
- </tr>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">iccColor</span></td>
- <td>
- </td>
- <td>The specification of an ICC color, or
- null.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-returnvalue">No Return
- Value</span></dt>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_INVALID_VALUE_ERR: Raised if one of the
- parameters has an invalid value.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGICCColor"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGICCColor</span></h3>
- <p>The <span class="DOMInterfaceName">SVGICCColor</span>
- interface expresses an ICC-based color specification.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGICCColor {
- attribute DOMString colorProfile;
- // raises DOMException on setting
- readonly attribute SVGNumberList colors;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>colorProfile</span></dt>
- <dd>
- <p>The name of the color profile, which is the first
- parameter of an ICC color specification.</p>
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGNumberList</span> <span
- class='dom-attr-name'>colors</span></dt>
- <dd>
- <p>The list of color values that define this ICC color.
- Each color value is an arbitrary floating point
- number.</p>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGRect"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGRect</span></h3>
- <p>Rectangles are defined as consisting of a (x,y) coordinate
- pair identifying a minimum X value, a minimum Y value, and a
- width and height, which are usually constrained to be
- non-negative.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGRect {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float width;
- // raises DOMException on setting
- attribute float height;
- // raises DOMException on setting
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>x</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">x</span> on the given element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>y</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">y</span> on the given element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>width</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">width</span> on the given element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>float</span> <span
- class='dom-attr-name'>height</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">height</span> on the given element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGAnimatedRect"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGAnimatedRect</span></h3>
- Used for attributes of type SVGRect which can be animated.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGAnimatedRect {
- readonly attribute SVGRect baseVal;
- readonly attribute SVGRect animVal;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGRect</span> <span
- class='dom-attr-name'>baseVal</span></dt>
- <dd>The base value of the given attribute before applying
- any animations.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGRect</span> <span
- class='dom-attr-name'>animVal</span></dt>
- <dd>If the given attribute or property is being animated,
- contains the current animated value of the attribute or
- property, and both the object itself and its contents are
- readonly. If the given attribute or property is not
- currently being animated, contains the same value as
- 'baseVal'.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGUnitTypes"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGUnitTypes</span></h3>
- <p>The <span class="DOMInterfaceName">SVGUnitTypes</span>
- interface defines a commonly used set of constants and is a
- base interface used by <a
- href="pservers.html#InterfaceSVGGradientElement"><span
- class="DOMInterfaceName">SVGGradientElement</span></a>, <a
- href="pservers.html#InterfaceSVGPatternElement"><span
- class="DOMInterfaceName">SVGPatternElement</span></a>, <a
- href="masking.html#InterfaceSVGClipPathElement"><span
- class="DOMInterfaceName">SVGClipPathElement</span></a>, <a
- href="masking.html#InterfaceSVGMaskElement"><span
- class="DOMInterfaceName">SVGMaskElement</span></a>, and <a
- href="filters.html#InterfaceSVGFilterElement"><span
- class="DOMInterfaceName">SVGFilterElement</span></a>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGUnitTypes {
- // Unit Types
- const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0;
- const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1;
- const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Unit Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>SVG_UNIT_TYPE_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The type is not one of predefined
- types. It is invalid to attempt to define a new
- value of this type or to attempt to switch an
- existing value to this type.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_UNIT_TYPE_USERSPACEONUSE</td>
- <td>
- </td>
- <td valign='top'>Corresponds to value <span
- class="attr-value">userSpaceOnUse</span>.</td>
- </tr>
- <tr>
- <td valign='top'>
- SVG_UNIT_TYPE_OBJECTBOUNDINGBOX</td>
- <td>
- </td>
- <td valign='top'>Corresponds to value <span
- class="attr-value">objectBoundingBox</span>.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGStylable"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGStylable</span></h3>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGStylable {
- readonly attribute SVGAnimatedString className;
- readonly attribute css::CSSStyleDeclaration style;
- css::CSSValue getPresentationAttribute ( in DOMString name );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedString</span> <span
- class='dom-attr-name'>className</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">class</span> on the given element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>css::CSSStyleDeclaration</span>
- <span class='dom-attr-name'>style</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">style</span> on the given element. If
- the user agent does not support <a
- href="styling.html#StylingWithCSS">styling with CSS</a>,
- then this attribute must always have the value of
- null.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span
- class='dom-method-name'>getPresentationAttribute</span></dt>
- <dd>
- Returns the base (i.e., static) value of a given
- <em>presentation attribute</em> as an object of type
- CSSValue. The returned object is live; changes to the
- objects represent immediate changes to the objects to
- which the CSSValue is attached.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">name</span></td>
- <td>
- </td>
- <td>Retrieves a "presentation attribute" by
- name.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">css::CSSValue</span></td>
- <td>
- </td>
- <td>
- <p>The static/base value of the given
- <em>presentation attribute</em> as a
- CSSValue, or NULL if the given attribute does
- not have a specified value.</p>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGLocatable"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGLocatable</span></h3>
- <p>Interface <span class="DOMInterfaceName">SVGLocatable</span>
- is for all elements which either have a <span
- class="attr-name">transform</span> attribute or don't have a
- <span class="attr-name">transform</span> attribute but whose
- content can have a bounding box in current user space.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGLocatable {
- readonly attribute SVGElement nearestViewportElement;
- readonly attribute SVGElement farthestViewportElement;
- SVGRect getBBox ( );
- SVGMatrix getCTM ( );
- SVGMatrix getScreenCTM ( );
- SVGMatrix getTransformToElement ( in SVGElement element )
- raises( SVGException );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGElement</span> <span
- class='dom-attr-name'>nearestViewportElement</span></dt>
- <dd>The element which established the current viewport.
- Often, the nearest ancestor <span
- class="element-name">'svg'</span> element. Null if the
- current element is the outermost <span
- class="element-name">'svg'</span> element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGElement</span> <span
- class='dom-attr-name'>farthestViewportElement</span></dt>
- <dd>The farthest ancestor <span
- class="element-name">'svg'</span> element. Null if the
- current element is the outermost <span
- class="element-name">'svg'</span> element.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-method-name'>getBBox</span></dt>
- <dd>
- Returns the tight bounding box in current user space
- (i.e., after application of the <span
- class="attr-name">transform</span> attribute, if any)
- on the geometry of all contained graphics elements,
- exclusive of stroke-width and filter effects).
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGRect</span></td>
- <td>
- </td>
- <td>An SVGRect object that defines the bounding
- box.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- <dt><span class='dom-method-name'>getCTM</span></dt>
- <dd>
- Returns the transformation matrix from current user
- units (i.e., after application of the <span
- class="attr-name">transform</span> attribute, if any)
- to the viewport coordinate system for the
- nearestViewportElement.
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGMatrix</span></td>
- <td>
- </td>
- <td>An SVGMatrix object that defines the
- CTM.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>getScreenCTM</span></dt>
- <dd>
- Returns the transformation matrix from current user
- units (i.e., after application of the <span
- class="attr-name">transform</span> attribute, if any)
- to the parent user agent's notice of a "pixel". For
- display devices, ideally this represents a physical
- screen pixel. For other devices or environments where
- physical pixel sizes are not known, then an algorithm
- similar to the CSS2 definition of a "pixel" can be used
- instead.
- <dl>
- <dt><span class="dom-no-parameters">No
- Parameters</span></dt>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGMatrix</span></td>
- <td>
- </td>
- <td>An SVGMatrix object that defines the given
- transformation matrix.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- <dt><span
- class='dom-method-name'>getTransformToElement</span></dt>
- <dd>
- Returns the transformation matrix from the user
- coordinate system on the current element (after
- application of the <span
- class="attr-name">transform</span> attribute, if any)
- to the user coordinate system on parameter <span
- class="dom-parameter-name"><code>element</code></span>
- (after application of its <span
- class="attr-name">transform</span> attribute, if any).
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">SVGElement</span>
- <span
- class="dom-parameter-name">element</span></td>
- <td>
- </td>
- <td>The target element.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">SVGMatrix</span></td>
- <td>
- </td>
- <td>An SVGMatrix object that defines the
- transformation.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span
- class="dom-parameters">Exceptions</span></dt>
- <dd>
- <table summary="method exceptions" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">SVGException</span></td>
- <td>
- </td>
- <td>
- <div>
- SVG_MATRIX_NOT_INVERTABLE: Raised if the
- currently defined transformation matrices
- make it impossible to compute the given
- matrix (e.g., because one of the
- transformations is singular).
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGTransformable"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGTransformable</span></h3>
- <p>Interface <span
- class="DOMInterfaceName">SVGTransformable</span> contains
- properties and methods that apply to all elements which have
- attribute <span class="attr-name">transform</span>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGTransformable : SVGLocatable {
- readonly attribute SVGAnimatedTransformList transform;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedTransformList</span>
- <span class='dom-attr-name'>transform</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">transform</span> on the given
- element.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGTests"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGTests</span></h3>
- <p>Interface <span class="DOMInterfaceName">SVGTests</span>
- defines an interface which applies to all elements which have
- attributes <a
- href="struct.html#RequiredFeaturesAttribute"><span
- class="attr-name">requiredFeatures</span></a>, <a
- href="struct.html#RequiredExtensionsAttribute"><span
- class="attr-name">requiredExtensions</span></a> and <a
- href="struct.html#SystemLanguageAttribute"><span
- class="attr-name">systemLanguage</span></a>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGTests {
- readonly attribute SVGStringList requiredFeatures;
- readonly attribute SVGStringList requiredExtensions;
- readonly attribute SVGStringList systemLanguage;
- boolean hasExtension ( in DOMString extension );
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGStringList</span> <span
- class='dom-attr-name'>requiredFeatures</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">requiredFeatures</span> on the given
- element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGStringList</span> <span
- class='dom-attr-name'>requiredExtensions</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">requiredExtensions</span> on the given
- element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGStringList</span> <span
- class='dom-attr-name'>systemLanguage</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">systemLanguage</span> on the given
- element.</dd>
- </dl>
- </dd>
- <dt><b>Methods</b></dt>
- <dd>
- <dl>
- <dt><span
- class='dom-method-name'>hasExtension</span></dt>
- <dd>
- Returns true if the user agent supports the given
- extension, specified by a URI.
- <dl>
- <dt><span
- class="dom-parameters">Parameters</span></dt>
- <dd>
- <table summary="method parameters" border='0'>
- <tr>
- <td valign='top'>in <span
- class="dom-parameter-type">DOMString</span>
- <span
- class="dom-parameter-name">extension</span></td>
- <td>
- </td>
- <td>The name of the extension, expressed as a
- URI.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-returnvalue">Return
- value</span></dt>
- <dd>
- <table summary="method return value" border='0'>
- <tr>
- <td valign='top'><span
- class="dom-returnvalue-type">boolean</span></td>
- <td>
- </td>
- <td>True or false, depending on whether the
- given extension is supported.</td>
- </tr>
- </table>
- </dd>
- </dl>
- <dl>
- <dt><span class="dom-no-exceptions">No
- Exceptions</span></dt>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGLangSpace"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGLangSpace</span></h3>
- <p>Interface <span class="DOMInterfaceName">SVGLangSpace</span>
- defines an interface which applies to all elements which have
- attributes <a href="struct.html#XMLLangAttribute"><span
- class="attr-name">xml:lang</span></a> and <a
- href="struct.html#XMLSpaceAttribute"><span
- class="attr-name">xml:space</span></a>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGLangSpace {
- attribute DOMString xmllang;
- // raises DOMException on setting
- attribute DOMString xmlspace;
- // raises DOMException on setting
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>xmllang</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">xml:lang</span> on the given element.
-
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><span class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>xmlspace</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">xml:space</span> on the given
- element.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGExternalResourcesRequired"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGExternalResourcesRequired</span></h3>
- <p>Interface <span
- class="DOMInterfaceName">SVGExternalResourcesRequired</span>
- defines an interface which applies to all elements where this
- element or one of its descendants can reference an external
- resource.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGExternalResourcesRequired {
- readonly attribute SVGAnimatedBoolean externalResourcesRequired;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedBoolean</span> <span
- class='dom-attr-name'>externalResourcesRequired</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">externalResourcesRequired</span> on the
- given element. Note that the SVG DOM defines the
- attribute <span
- class="attr-name">externalResourcesRequired</span> as
- being of type <span
- class="DOMInterfaceName">SVGAnimatedBoolean</span>,
- whereas the SVG language definition says that <span
- class="attr-name">externalResourcesRequired</span> is not
- animated. Because the SVG language definition states that
- <span class="attr-name">externalResourcesRequired</span>
- cannot be animated, the animVal will always be the same
- as the baseVal.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGFitToViewBox"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGFitToViewBox</span></h3>
- <p>Interface <span
- class="DOMInterfaceName">SVGFitToViewBox</span> defines DOM
- attributes that apply to elements which have XML attributes
- <span class="attr-name">viewBox</span> and <span
- class="attr-name">preserveAspectRatio</span>.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGFitToViewBox {
- readonly attribute SVGAnimatedRect viewBox;
- readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedRect</span> <span
- class='dom-attr-name'>viewBox</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">viewBox</span> on the given
- element.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedPreserveAspectRatio</span>
- <span
- class='dom-attr-name'>preserveAspectRatio</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">preserveAspectRatio</span> on the given
- element.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGZoomAndPan"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGZoomAndPan</span></h3>
- The <span class="DOMInterfaceName">SVGZoomAndPan</span>
- interface defines attribute "zoomAndPan" and associated
- constants.
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGZoomAndPan {
- // Zoom and Pan Types
- const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
- const unsigned short SVG_ZOOMANDPAN_DISABLE = 1;
- const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2;
- attribute unsigned short zoomAndPan;
- // raises DOMException on setting
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Zoom and Pan Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>SVG_ZOOMANDPAN_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The enumeration was set to a value
- that is not one of predefined types. It is invalid
- to attempt to define a new value of this type or to
- attempt to switch an existing value to this
- type.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ZOOMANDPAN_DISABLE</td>
- <td>
- </td>
- <td valign='top'>Corresponds to value <span
- class="attr-value">disable</span>.</td>
- </tr>
- <tr>
- <td valign='top'>SVG_ZOOMANDPAN_MAGNIFY</td>
- <td>
- </td>
- <td valign='top'>Corresponds to value <span
- class="attr-value">magnify</span>.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class='dom-attr-type'>unsigned short</span>
- <span class='dom-attr-name'>zoomAndPan</span></dt>
- <dd>
- Corresponds to attribute <span
- class="attr-name">zoomAndPan</span> on the given
- element. The value must be one of the zoom and pan
- constants specified above.
- <dl>
- <dt><span class="dom-parameters">Exceptions on
- setting</span></dt>
- <dd>
- <table summary="attribute setting exceptions"
- border='0'>
- <tr>
- <td valign='top'><span
- class="dom-exception-type">DOMException</span></td>
- <td>
- </td>
- <td>
- <div>
- NO_MODIFICATION_ALLOWED_ERR: Raised on an
- attempt to change the value of a readonly
- attribute.
- </div>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGViewSpec"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGViewSpec</span></h3>
- <p>The interface corresponds to an SVG View Specification.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGViewSpec :
- SVGZoomAndPan,
- SVGFitToViewBox {
- readonly attribute SVGTransformList transform;
- readonly attribute SVGElement viewTarget;
- readonly attribute DOMString viewBoxString;
- readonly attribute DOMString preserveAspectRatioString;
- readonly attribute DOMString transformString;
- readonly attribute DOMString viewTargetString;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGTransformList</span> <span
- class='dom-attr-name'>transform</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">transform</span> setting on the SVG
- View Specification.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGElement</span> <span
- class='dom-attr-name'>viewTarget</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">viewTarget</span> setting on the SVG
- View Specification.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>viewBoxString</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">viewBox</span> setting on the SVG View
- Specification.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>preserveAspectRatioString</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">preserveAspectRatio</span> setting on
- the SVG View Specification.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>transformString</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">transform</span> setting on the SVG
- View Specification.</dd>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>DOMString</span> <span
- class='dom-attr-name'>viewTargetString</span></dt>
- <dd>Corresponds to the <span
- class="attr-name">viewTarget</span> setting on the SVG
- View Specification.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGURIReference"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGURIReference</span></h3>
- <p>Interface <span
- class="DOMInterfaceName">SVGURIReference</span> defines an
- interface which applies to all elements which have the
- collection of XLink attributes, such as <a
- href="struct.html#xlinkRefAttrs">xlink:href</a>, which define a
- URI reference.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGURIReference {
- readonly attribute SVGAnimatedString href;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Attributes</b></dt>
- <dd>
- <dl>
- <dt><span class="dom-readonly">readonly</span> <span
- class='dom-attr-type'>SVGAnimatedString</span> <span
- class='dom-attr-name'>href</span></dt>
- <dd>Corresponds to attribute <span
- class="attr-name">xlink:href</span> on the given
- element.</dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGCSSRule"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGCSSRule</span></h3>
- <p>SVG extends interface <span
- class="DOMInterfaceName">CSSRule</span> with interface <span
- class="DOMInterfaceName">SVGCSSRule</span> by adding an <span
- class="DOMInterfaceName">SVGColorProfileRule</span> rule to
- allow for specification of ICC-based color.</p>
- <p>It is likely that this extension will become part of a
- future version of CSS and DOM.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGCSSRule : css::CSSRule {
- // Additional CSS RuleType to support ICC color specifications
- const unsigned short COLOR_PROFILE_RULE = 7;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Additional CSS RuleType to support
- ICC color specifications</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>COLOR_PROFILE_RULE</td>
- <td>
- </td>
- <td valign='top'>The rule is an <a
- href="color.html#InterfaceSVGColorProfileRule">@color-profile</a>.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- <br />
- <a id="InterfaceSVGRenderingIntent"/>
- <h3>Interface <span
- class="DOMInterfaceName">SVGRenderingIntent</span></h3>
- <p>The <span class="DOMInterfaceName">SVGRenderingIntent</span>
- interface defines the enumerated list of possible values for
- 'rendering-intent' attributes or descriptors.</p>
- <dl>
- <dt><br />
- <b>IDL Definition</b></dt>
- <dd>
- <div class='idl-code'>
-<pre>
-interface SVGRenderingIntent {
- // Rendering Intent Types
- const unsigned short RENDERING_INTENT_UNKNOWN = 0;
- const unsigned short RENDERING_INTENT_AUTO = 1;
- const unsigned short RENDERING_INTENT_PERCEPTUAL = 2;
- const unsigned short RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
- const unsigned short RENDERING_INTENT_SATURATION = 4;
- const unsigned short RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
-};
-</pre>
- </div>
- <br />
- </dd>
- <dt><b>Definition group Rendering Intent Types</b></dt>
- <dd>
- <dl>
- <dt><b>Defined constants</b></dt>
- <dd>
- <table summary="enumeration values" border='0'>
- <tr>
- <td valign='top'>RENDERING_INTENT_UNKNOWN</td>
- <td>
- </td>
- <td valign='top'>The type is not one of predefined
- types. It is invalid to attempt to define a new
- value of this type or to attempt to switch an
- existing value to this type.</td>
- </tr>
- <tr>
- <td valign='top'>RENDERING_INTENT_AUTO</td>
- <td>
- </td>
- <td valign='top'>Corresponds to a value of <span
- class="prop-value">auto</span>.</td>
- </tr>
- <tr>
- <td valign='top'>RENDERING_INTENT_PERCEPTUAL</td>
- <td>
- </td>
- <td valign='top'>Corresponds to a value of <span
- class="prop-value">perceptual</span>.</td>
- </tr>
- <tr>
- <td valign='top'>
- RENDERING_INTENT_RELATIVE_COLORIMETRIC</td>
- <td>
- </td>
- <td valign='top'>Corresponds to a value of <span
- class="prop-value">relative-colorimetric</span>.</td>
- </tr>
- <tr>
- <td valign='top'>RENDERING_INTENT_SATURATION</td>
- <td>
- </td>
- <td valign='top'>Corresponds to a value of <span
- class="prop-value">saturation</span>.</td>
- </tr>
- <tr>
- <td valign='top'>
- RENDERING_INTENT_ABSOLUTE_COLORIMETRIC</td>
- <td>
- </td>
- <td valign='top'>Corresponds to a value of <span
- class="prop-value">absolute-colorimetric</span>.</td>
- </tr>
- </table>
- </dd>
- </dl>
- </dd>
- </dl>
- <hr class="navbar" />
- <div class="navlinks">
- <p><a href="render.html">previous</a> <a
- href="struct.html">next</a> <a
- href="index.html#minitoc">contents</a> <a
- href="eltindex.html">elements</a> <a
- href="attindex.html">attributes</a> <a
- href="propidx.html">properties</a> <a
- href="indexlist.html">index</a> </p>
- </div>
- </body>
-</html>
+++ /dev/null
-/*
- * xcolors.c --
- *
- * This file contains the routines used to map from X color names to RGB
- * and pixel values.
- *
- * Copyright (c) 1996 by Sun Microsystems, Inc.
- *
- * See the file "license.terms" for information on usage and redistribution of
- * this file, and for a DISCLAIMER OF ALL WARRANTIES.
- *
- * RCS: @(#) $Id$
- */
-
-#include <tkInt.h>
-#include <cgraph/strcasecmp.h>
-
-/*
- * This value will be set to the number of colors in the color table
- * the first time it is needed.
- */
-
-static int numXColors = 0;
-
-/*
- * Forward declarations for functions used only in this file.
- */
-
-static int FindColor(const char *name, XColor *colorPtr);
-\f
-/*
- * Define an array that defines the mapping from color names to RGB values.
- * Note that this array must be kept sorted alphabetically so that the binary
- * search used in XParseColor will succeed.
- */
-
-typedef struct {
- char *name;
- unsigned char red, green, blue;
-} XColorEntry;
-
-static XColorEntry xColors[] = {
- { "alice blue", 240, 248, 255 },
- { "AliceBlue", 240, 248, 255 },
- { "antique white", 250, 235, 215 },
- { "AntiqueWhite", 250, 235, 215 },
- { "AntiqueWhite1", 255, 239, 219 },
- { "AntiqueWhite2", 238, 223, 204 },
- { "AntiqueWhite3", 205, 192, 176 },
- { "AntiqueWhite4", 139, 131, 120 },
- { "aquamarine", 127, 255, 212 },
- { "aquamarine1", 127, 255, 212 },
- { "aquamarine2", 118, 238, 198 },
- { "aquamarine3", 102, 205, 170 },
- { "aquamarine4", 69, 139, 116 },
- { "azure", 240, 255, 255 },
- { "azure1", 240, 255, 255 },
- { "azure2", 224, 238, 238 },
- { "azure3", 193, 205, 205 },
- { "azure4", 131, 139, 139 },
- { "beige", 245, 245, 220 },
- { "bisque", 255, 228, 196 },
- { "bisque1", 255, 228, 196 },
- { "bisque2", 238, 213, 183 },
- { "bisque3", 205, 183, 158 },
- { "bisque4", 139, 125, 107 },
- { "black", 0, 0, 0 },
- { "blanched almond", 255, 235, 205 },
- { "BlanchedAlmond", 255, 235, 205 },
- { "blue", 0, 0, 255 },
- { "blue violet", 138, 43, 226 },
- { "blue1", 0, 0, 255 },
- { "blue2", 0, 0, 238 },
- { "blue3", 0, 0, 205 },
- { "blue4", 0, 0, 139 },
- { "BlueViolet", 138, 43, 226 },
- { "brown", 165, 42, 42 },
- { "brown1", 255, 64, 64 },
- { "brown2", 238, 59, 59 },
- { "brown3", 205, 51, 51 },
- { "brown4", 139, 35, 35 },
- { "burlywood", 222, 184, 135 },
- { "burlywood1", 255, 211, 155 },
- { "burlywood2", 238, 197, 145 },
- { "burlywood3", 205, 170, 125 },
- { "burlywood4", 139, 115, 85 },
- { "cadet blue", 95, 158, 160 },
- { "CadetBlue", 95, 158, 160 },
- { "CadetBlue1", 152, 245, 255 },
- { "CadetBlue2", 142, 229, 238 },
- { "CadetBlue3", 122, 197, 205 },
- { "CadetBlue4", 83, 134, 139 },
- { "chartreuse", 127, 255, 0 },
- { "chartreuse1", 127, 255, 0 },
- { "chartreuse2", 118, 238, 0 },
- { "chartreuse3", 102, 205, 0 },
- { "chartreuse4", 69, 139, 0 },
- { "chocolate", 210, 105, 30 },
- { "chocolate1", 255, 127, 36 },
- { "chocolate2", 238, 118, 33 },
- { "chocolate3", 205, 102, 29 },
- { "chocolate4", 139, 69, 19 },
- { "coral", 255, 127, 80 },
- { "coral1", 255, 114, 86 },
- { "coral2", 238, 106, 80 },
- { "coral3", 205, 91, 69 },
- { "coral4", 139, 62, 47 },
- { "cornflower blue", 100, 149, 237 },
- { "CornflowerBlue", 100, 149, 237 },
- { "cornsilk", 255, 248, 220 },
- { "cornsilk1", 255, 248, 220 },
- { "cornsilk2", 238, 232, 205 },
- { "cornsilk3", 205, 200, 177 },
- { "cornsilk4", 139, 136, 120 },
- { "cyan", 0, 255, 255 },
- { "cyan1", 0, 255, 255 },
- { "cyan2", 0, 238, 238 },
- { "cyan3", 0, 205, 205 },
- { "cyan4", 0, 139, 139 },
- { "dark blue", 0, 0, 139 },
- { "dark cyan", 0, 139, 139 },
- { "dark goldenrod", 184, 134, 11 },
- { "dark gray", 169, 169, 169 },
- { "dark green", 0, 100, 0 },
- { "dark grey", 169, 169, 169 },
- { "dark khaki", 189, 183, 107 },
- { "dark magenta", 139, 0, 139 },
- { "dark olive green", 85, 107, 47 },
- { "dark orange", 255, 140, 0 },
- { "dark orchid", 153, 50, 204 },
- { "dark red", 139, 0, 0 },
- { "dark salmon", 233, 150, 122 },
- { "dark sea green", 143, 188, 143 },
- { "dark slate blue", 72, 61, 139 },
- { "dark slate gray", 47, 79, 79 },
- { "dark slate grey", 47, 79, 79 },
- { "dark turquoise", 0, 206, 209 },
- { "dark violet", 148, 0, 211 },
- { "DarkBlue", 0, 0, 139 },
- { "DarkCyan", 0, 139, 139 },
- { "DarkGoldenrod", 184, 134, 11 },
- { "DarkGoldenrod1", 255, 185, 15 },
- { "DarkGoldenrod2", 238, 173, 14 },
- { "DarkGoldenrod3", 205, 149, 12 },
- { "DarkGoldenrod4", 139, 101, 8 },
- { "DarkGray", 169, 169, 169 },
- { "DarkGreen", 0, 100, 0 },
- { "DarkGrey", 169, 169, 169 },
- { "DarkKhaki", 189, 183, 107 },
- { "DarkMagenta", 139, 0, 139 },
- { "DarkOliveGreen", 85, 107, 47 },
- { "DarkOliveGreen1", 202, 255, 112 },
- { "DarkOliveGreen2", 188, 238, 104 },
- { "DarkOliveGreen3", 162, 205, 90 },
- { "DarkOliveGreen4", 110, 139, 61 },
- { "DarkOrange", 255, 140, 0 },
- { "DarkOrange1", 255, 127, 0 },
- { "DarkOrange2", 238, 118, 0 },
- { "DarkOrange3", 205, 102, 0 },
- { "DarkOrange4", 139, 69, 0 },
- { "DarkOrchid", 153, 50, 204 },
- { "DarkOrchid1", 191, 62, 255 },
- { "DarkOrchid2", 178, 58, 238 },
- { "DarkOrchid3", 154, 50, 205 },
- { "DarkOrchid4", 104, 34, 139 },
- { "DarkRed", 139, 0, 0 },
- { "DarkSalmon", 233, 150, 122 },
- { "DarkSeaGreen", 143, 188, 143 },
- { "DarkSeaGreen1", 193, 255, 193 },
- { "DarkSeaGreen2", 180, 238, 180 },
- { "DarkSeaGreen3", 155, 205, 155 },
- { "DarkSeaGreen4", 105, 139, 105 },
- { "DarkSlateBlue", 72, 61, 139 },
- { "DarkSlateGray", 47, 79, 79 },
- { "DarkSlateGray1", 151, 255, 255 },
- { "DarkSlateGray2", 141, 238, 238 },
- { "DarkSlateGray3", 121, 205, 205 },
- { "DarkSlateGray4", 82, 139, 139 },
- { "DarkSlateGrey", 47, 79, 79 },
- { "DarkTurquoise", 0, 206, 209 },
- { "DarkViolet", 148, 0, 211 },
- { "deep pink", 255, 20, 147 },
- { "deep sky blue", 0, 191, 255 },
- { "DeepPink", 255, 20, 147 },
- { "DeepPink1", 255, 20, 147 },
- { "DeepPink2", 238, 18, 137 },
- { "DeepPink3", 205, 16, 118 },
- { "DeepPink4", 139, 10, 80 },
- { "DeepSkyBlue", 0, 191, 255 },
- { "DeepSkyBlue1", 0, 191, 255 },
- { "DeepSkyBlue2", 0, 178, 238 },
- { "DeepSkyBlue3", 0, 154, 205 },
- { "DeepSkyBlue4", 0, 104, 139 },
- { "dim gray", 105, 105, 105 },
- { "dim grey", 105, 105, 105 },
- { "DimGray", 105, 105, 105 },
- { "DimGrey", 105, 105, 105 },
- { "dodger blue", 30, 144, 255 },
- { "DodgerBlue", 30, 144, 255 },
- { "DodgerBlue1", 30, 144, 255 },
- { "DodgerBlue2", 28, 134, 238 },
- { "DodgerBlue3", 24, 116, 205 },
- { "DodgerBlue4", 16, 78, 139 },
- { "firebrick", 178, 34, 34 },
- { "firebrick1", 255, 48, 48 },
- { "firebrick2", 238, 44, 44 },
- { "firebrick3", 205, 38, 38 },
- { "firebrick4", 139, 26, 26 },
- { "floral white", 255, 250, 240 },
- { "FloralWhite", 255, 250, 240 },
- { "forest green", 34, 139, 34 },
- { "ForestGreen", 34, 139, 34 },
- { "gainsboro", 220, 220, 220 },
- { "ghost white", 248, 248, 255 },
- { "GhostWhite", 248, 248, 255 },
- { "gold", 255, 215, 0 },
- { "gold1", 255, 215, 0 },
- { "gold2", 238, 201, 0 },
- { "gold3", 205, 173, 0 },
- { "gold4", 139, 117, 0 },
- { "goldenrod", 218, 165, 32 },
- { "goldenrod1", 255, 193, 37 },
- { "goldenrod2", 238, 180, 34 },
- { "goldenrod3", 205, 155, 29 },
- { "goldenrod4", 139, 105, 20 },
- { "gray", 190, 190, 190 },
- { "gray0", 0, 0, 0 },
- { "gray1", 3, 3, 3 },
- { "gray10", 26, 26, 26 },
- { "gray100", 255, 255, 255 },
- { "gray11", 28, 28, 28 },
- { "gray12", 31, 31, 31 },
- { "gray13", 33, 33, 33 },
- { "gray14", 36, 36, 36 },
- { "gray15", 38, 38, 38 },
- { "gray16", 41, 41, 41 },
- { "gray17", 43, 43, 43 },
- { "gray18", 46, 46, 46 },
- { "gray19", 48, 48, 48 },
- { "gray2", 5, 5, 5 },
- { "gray20", 51, 51, 51 },
- { "gray21", 54, 54, 54 },
- { "gray22", 56, 56, 56 },
- { "gray23", 59, 59, 59 },
- { "gray24", 61, 61, 61 },
- { "gray25", 64, 64, 64 },
- { "gray26", 66, 66, 66 },
- { "gray27", 69, 69, 69 },
- { "gray28", 71, 71, 71 },
- { "gray29", 74, 74, 74 },
- { "gray3", 8, 8, 8 },
- { "gray30", 77, 77, 77 },
- { "gray31", 79, 79, 79 },
- { "gray32", 82, 82, 82 },
- { "gray33", 84, 84, 84 },
- { "gray34", 87, 87, 87 },
- { "gray35", 89, 89, 89 },
- { "gray36", 92, 92, 92 },
- { "gray37", 94, 94, 94 },
- { "gray38", 97, 97, 97 },
- { "gray39", 99, 99, 99 },
- { "gray4", 10, 10, 10 },
- { "gray40", 102, 102, 102 },
- { "gray41", 105, 105, 105 },
- { "gray42", 107, 107, 107 },
- { "gray43", 110, 110, 110 },
- { "gray44", 112, 112, 112 },
- { "gray45", 115, 115, 115 },
- { "gray46", 117, 117, 117 },
- { "gray47", 120, 120, 120 },
- { "gray48", 122, 122, 122 },
- { "gray49", 125, 125, 125 },
- { "gray5", 13, 13, 13 },
- { "gray50", 127, 127, 127 },
- { "gray51", 130, 130, 130 },
- { "gray52", 133, 133, 133 },
- { "gray53", 135, 135, 135 },
- { "gray54", 138, 138, 138 },
- { "gray55", 140, 140, 140 },
- { "gray56", 143, 143, 143 },
- { "gray57", 145, 145, 145 },
- { "gray58", 148, 148, 148 },
- { "gray59", 150, 150, 150 },
- { "gray6", 15, 15, 15 },
- { "gray60", 153, 153, 153 },
- { "gray61", 156, 156, 156 },
- { "gray62", 158, 158, 158 },
- { "gray63", 161, 161, 161 },
- { "gray64", 163, 163, 163 },
- { "gray65", 166, 166, 166 },
- { "gray66", 168, 168, 168 },
- { "gray67", 171, 171, 171 },
- { "gray68", 173, 173, 173 },
- { "gray69", 176, 176, 176 },
- { "gray7", 18, 18, 18 },
- { "gray70", 179, 179, 179 },
- { "gray71", 181, 181, 181 },
- { "gray72", 184, 184, 184 },
- { "gray73", 186, 186, 186 },
- { "gray74", 189, 189, 189 },
- { "gray75", 191, 191, 191 },
- { "gray76", 194, 194, 194 },
- { "gray77", 196, 196, 196 },
- { "gray78", 199, 199, 199 },
- { "gray79", 201, 201, 201 },
- { "gray8", 20, 20, 20 },
- { "gray80", 204, 204, 204 },
- { "gray81", 207, 207, 207 },
- { "gray82", 209, 209, 209 },
- { "gray83", 212, 212, 212 },
- { "gray84", 214, 214, 214 },
- { "gray85", 217, 217, 217 },
- { "gray86", 219, 219, 219 },
- { "gray87", 222, 222, 222 },
- { "gray88", 224, 224, 224 },
- { "gray89", 227, 227, 227 },
- { "gray9", 23, 23, 23 },
- { "gray90", 229, 229, 229 },
- { "gray91", 232, 232, 232 },
- { "gray92", 235, 235, 235 },
- { "gray93", 237, 237, 237 },
- { "gray94", 240, 240, 240 },
- { "gray95", 242, 242, 242 },
- { "gray96", 245, 245, 245 },
- { "gray97", 247, 247, 247 },
- { "gray98", 250, 250, 250 },
- { "gray99", 252, 252, 252 },
- { "green", 0, 255, 0 },
- { "green yellow", 173, 255, 47 },
- { "green1", 0, 255, 0 },
- { "green2", 0, 238, 0 },
- { "green3", 0, 205, 0 },
- { "green4", 0, 139, 0 },
- { "GreenYellow", 173, 255, 47 },
- { "grey", 190, 190, 190 },
- { "grey0", 0, 0, 0 },
- { "grey1", 3, 3, 3 },
- { "grey10", 26, 26, 26 },
- { "grey100", 255, 255, 255 },
- { "grey11", 28, 28, 28 },
- { "grey12", 31, 31, 31 },
- { "grey13", 33, 33, 33 },
- { "grey14", 36, 36, 36 },
- { "grey15", 38, 38, 38 },
- { "grey16", 41, 41, 41 },
- { "grey17", 43, 43, 43 },
- { "grey18", 46, 46, 46 },
- { "grey19", 48, 48, 48 },
- { "grey2", 5, 5, 5 },
- { "grey20", 51, 51, 51 },
- { "grey21", 54, 54, 54 },
- { "grey22", 56, 56, 56 },
- { "grey23", 59, 59, 59 },
- { "grey24", 61, 61, 61 },
- { "grey25", 64, 64, 64 },
- { "grey26", 66, 66, 66 },
- { "grey27", 69, 69, 69 },
- { "grey28", 71, 71, 71 },
- { "grey29", 74, 74, 74 },
- { "grey3", 8, 8, 8 },
- { "grey30", 77, 77, 77 },
- { "grey31", 79, 79, 79 },
- { "grey32", 82, 82, 82 },
- { "grey33", 84, 84, 84 },
- { "grey34", 87, 87, 87 },
- { "grey35", 89, 89, 89 },
- { "grey36", 92, 92, 92 },
- { "grey37", 94, 94, 94 },
- { "grey38", 97, 97, 97 },
- { "grey39", 99, 99, 99 },
- { "grey4", 10, 10, 10 },
- { "grey40", 102, 102, 102 },
- { "grey41", 105, 105, 105 },
- { "grey42", 107, 107, 107 },
- { "grey43", 110, 110, 110 },
- { "grey44", 112, 112, 112 },
- { "grey45", 115, 115, 115 },
- { "grey46", 117, 117, 117 },
- { "grey47", 120, 120, 120 },
- { "grey48", 122, 122, 122 },
- { "grey49", 125, 125, 125 },
- { "grey5", 13, 13, 13 },
- { "grey50", 127, 127, 127 },
- { "grey51", 130, 130, 130 },
- { "grey52", 133, 133, 133 },
- { "grey53", 135, 135, 135 },
- { "grey54", 138, 138, 138 },
- { "grey55", 140, 140, 140 },
- { "grey56", 143, 143, 143 },
- { "grey57", 145, 145, 145 },
- { "grey58", 148, 148, 148 },
- { "grey59", 150, 150, 150 },
- { "grey6", 15, 15, 15 },
- { "grey60", 153, 153, 153 },
- { "grey61", 156, 156, 156 },
- { "grey62", 158, 158, 158 },
- { "grey63", 161, 161, 161 },
- { "grey64", 163, 163, 163 },
- { "grey65", 166, 166, 166 },
- { "grey66", 168, 168, 168 },
- { "grey67", 171, 171, 171 },
- { "grey68", 173, 173, 173 },
- { "grey69", 176, 176, 176 },
- { "grey7", 18, 18, 18 },
- { "grey70", 179, 179, 179 },
- { "grey71", 181, 181, 181 },
- { "grey72", 184, 184, 184 },
- { "grey73", 186, 186, 186 },
- { "grey74", 189, 189, 189 },
- { "grey75", 191, 191, 191 },
- { "grey76", 194, 194, 194 },
- { "grey77", 196, 196, 196 },
- { "grey78", 199, 199, 199 },
- { "grey79", 201, 201, 201 },
- { "grey8", 20, 20, 20 },
- { "grey80", 204, 204, 204 },
- { "grey81", 207, 207, 207 },
- { "grey82", 209, 209, 209 },
- { "grey83", 212, 212, 212 },
- { "grey84", 214, 214, 214 },
- { "grey85", 217, 217, 217 },
- { "grey86", 219, 219, 219 },
- { "grey87", 222, 222, 222 },
- { "grey88", 224, 224, 224 },
- { "grey89", 227, 227, 227 },
- { "grey9", 23, 23, 23 },
- { "grey90", 229, 229, 229 },
- { "grey91", 232, 232, 232 },
- { "grey92", 235, 235, 235 },
- { "grey93", 237, 237, 237 },
- { "grey94", 240, 240, 240 },
- { "grey95", 242, 242, 242 },
- { "grey96", 245, 245, 245 },
- { "grey97", 247, 247, 247 },
- { "grey98", 250, 250, 250 },
- { "grey99", 252, 252, 252 },
- { "honeydew", 240, 255, 240 },
- { "honeydew1", 240, 255, 240 },
- { "honeydew2", 224, 238, 224 },
- { "honeydew3", 193, 205, 193 },
- { "honeydew4", 131, 139, 131 },
- { "hot pink", 255, 105, 180 },
- { "HotPink", 255, 105, 180 },
- { "HotPink1", 255, 110, 180 },
- { "HotPink2", 238, 106, 167 },
- { "HotPink3", 205, 96, 144 },
- { "HotPink4", 139, 58, 98 },
- { "indian red", 205, 92, 92 },
- { "IndianRed", 205, 92, 92 },
- { "IndianRed1", 255, 106, 106 },
- { "IndianRed2", 238, 99, 99 },
- { "IndianRed3", 205, 85, 85 },
- { "IndianRed4", 139, 58, 58 },
- { "ivory", 255, 255, 240 },
- { "ivory1", 255, 255, 240 },
- { "ivory2", 238, 238, 224 },
- { "ivory3", 205, 205, 193 },
- { "ivory4", 139, 139, 131 },
- { "khaki", 240, 230, 140 },
- { "khaki1", 255, 246, 143 },
- { "khaki2", 238, 230, 133 },
- { "khaki3", 205, 198, 115 },
- { "khaki4", 139, 134, 78 },
- { "lavender", 230, 230, 250 },
- { "lavender blush", 255, 240, 245 },
- { "LavenderBlush", 255, 240, 245 },
- { "LavenderBlush1", 255, 240, 245 },
- { "LavenderBlush2", 238, 224, 229 },
- { "LavenderBlush3", 205, 193, 197 },
- { "LavenderBlush4", 139, 131, 134 },
- { "lawn green", 124, 252, 0 },
- { "LawnGreen", 124, 252, 0 },
- { "lemon chiffon", 255, 250, 205 },
- { "LemonChiffon", 255, 250, 205 },
- { "LemonChiffon1", 255, 250, 205 },
- { "LemonChiffon2", 238, 233, 191 },
- { "LemonChiffon3", 205, 201, 165 },
- { "LemonChiffon4", 139, 137, 112 },
- { "light blue", 173, 216, 230 },
- { "light coral", 240, 128, 128 },
- { "light cyan", 224, 255, 255 },
- { "light goldenrod", 238, 221, 130 },
- { "light goldenrod yellow", 250, 250, 210 },
- { "light gray", 211, 211, 211 },
- { "light green", 144, 238, 144 },
- { "light grey", 211, 211, 211 },
- { "light pink", 255, 182, 193 },
- { "light salmon", 255, 160, 122 },
- { "light sea green", 32, 178, 170 },
- { "light sky blue", 135, 206, 250 },
- { "light slate blue", 132, 112, 255 },
- { "light slate gray", 119, 136, 153 },
- { "light slate grey", 119, 136, 153 },
- { "light steel blue", 176, 196, 222 },
- { "light yellow", 255, 255, 224 },
- { "LightBlue", 173, 216, 230 },
- { "LightBlue1", 191, 239, 255 },
- { "LightBlue2", 178, 223, 238 },
- { "LightBlue3", 154, 192, 205 },
- { "LightBlue4", 104, 131, 139 },
- { "LightCoral", 240, 128, 128 },
- { "LightCyan", 224, 255, 255 },
- { "LightCyan1", 224, 255, 255 },
- { "LightCyan2", 209, 238, 238 },
- { "LightCyan3", 180, 205, 205 },
- { "LightCyan4", 122, 139, 139 },
- { "LightGoldenrod", 238, 221, 130 },
- { "LightGoldenrod1", 255, 236, 139 },
- { "LightGoldenrod2", 238, 220, 130 },
- { "LightGoldenrod3", 205, 190, 112 },
- { "LightGoldenrod4", 139, 129, 76 },
- { "LightGoldenrodYellow", 250, 250, 210 },
- { "LightGray", 211, 211, 211 },
- { "LightGreen", 144, 238, 144 },
- { "LightGrey", 211, 211, 211 },
- { "LightPink", 255, 182, 193 },
- { "LightPink1", 255, 174, 185 },
- { "LightPink2", 238, 162, 173 },
- { "LightPink3", 205, 140, 149 },
- { "LightPink4", 139, 95, 101 },
- { "LightSalmon", 255, 160, 122 },
- { "LightSalmon1", 255, 160, 122 },
- { "LightSalmon2", 238, 149, 114 },
- { "LightSalmon3", 205, 129, 98 },
- { "LightSalmon4", 139, 87, 66 },
- { "LightSeaGreen", 32, 178, 170 },
- { "LightSkyBlue", 135, 206, 250 },
- { "LightSkyBlue1", 176, 226, 255 },
- { "LightSkyBlue2", 164, 211, 238 },
- { "LightSkyBlue3", 141, 182, 205 },
- { "LightSkyBlue4", 96, 123, 139 },
- { "LightSlateBlue", 132, 112, 255 },
- { "LightSlateGray", 119, 136, 153 },
- { "LightSlateGrey", 119, 136, 153 },
- { "LightSteelBlue", 176, 196, 222 },
- { "LightSteelBlue1", 202, 225, 255 },
- { "LightSteelBlue2", 188, 210, 238 },
- { "LightSteelBlue3", 162, 181, 205 },
- { "LightSteelBlue4", 110, 123, 139 },
- { "LightYellow", 255, 255, 224 },
- { "LightYellow1", 255, 255, 224 },
- { "LightYellow2", 238, 238, 209 },
- { "LightYellow3", 205, 205, 180 },
- { "LightYellow4", 139, 139, 122 },
- { "lime green", 50, 205, 50 },
- { "LimeGreen", 50, 205, 50 },
- { "linen", 250, 240, 230 },
- { "magenta", 255, 0, 255 },
- { "magenta1", 255, 0, 255 },
- { "magenta2", 238, 0, 238 },
- { "magenta3", 205, 0, 205 },
- { "magenta4", 139, 0, 139 },
- { "maroon", 176, 48, 96 },
- { "maroon1", 255, 52, 179 },
- { "maroon2", 238, 48, 167 },
- { "maroon3", 205, 41, 144 },
- { "maroon4", 139, 28, 98 },
- { "medium aquamarine", 102, 205, 170 },
- { "medium blue", 0, 0, 205 },
- { "medium orchid", 186, 85, 211 },
- { "medium purple", 147, 112, 219 },
- { "medium sea green", 60, 179, 113 },
- { "medium slate blue", 123, 104, 238 },
- { "medium spring green", 0, 250, 154 },
- { "medium turquoise", 72, 209, 204 },
- { "medium violet red", 199, 21, 133 },
- { "MediumAquamarine", 102, 205, 170 },
- { "MediumBlue", 0, 0, 205 },
- { "MediumOrchid", 186, 85, 211 },
- { "MediumOrchid1", 224, 102, 255 },
- { "MediumOrchid2", 209, 95, 238 },
- { "MediumOrchid3", 180, 82, 205 },
- { "MediumOrchid4", 122, 55, 139 },
- { "MediumPurple", 147, 112, 219 },
- { "MediumPurple1", 171, 130, 255 },
- { "MediumPurple2", 159, 121, 238 },
- { "MediumPurple3", 137, 104, 205 },
- { "MediumPurple4", 93, 71, 139 },
- { "MediumSeaGreen", 60, 179, 113 },
- { "MediumSlateBlue", 123, 104, 238 },
- { "MediumSpringGreen", 0, 250, 154 },
- { "MediumTurquoise", 72, 209, 204 },
- { "MediumVioletRed", 199, 21, 133 },
- { "midnight blue", 25, 25, 112 },
- { "MidnightBlue", 25, 25, 112 },
- { "mint cream", 245, 255, 250 },
- { "MintCream", 245, 255, 250 },
- { "misty rose", 255, 228, 225 },
- { "MistyRose", 255, 228, 225 },
- { "MistyRose1", 255, 228, 225 },
- { "MistyRose2", 238, 213, 210 },
- { "MistyRose3", 205, 183, 181 },
- { "MistyRose4", 139, 125, 123 },
- { "moccasin", 255, 228, 181 },
- { "navajo white", 255, 222, 173 },
- { "NavajoWhite", 255, 222, 173 },
- { "NavajoWhite1", 255, 222, 173 },
- { "NavajoWhite2", 238, 207, 161 },
- { "NavajoWhite3", 205, 179, 139 },
- { "NavajoWhite4", 139, 121, 94 },
- { "navy", 0, 0, 128 },
- { "navy blue", 0, 0, 128 },
- { "NavyBlue", 0, 0, 128 },
- { "old lace", 253, 245, 230 },
- { "OldLace", 253, 245, 230 },
- { "olive drab", 107, 142, 35 },
- { "OliveDrab", 107, 142, 35 },
- { "OliveDrab1", 192, 255, 62 },
- { "OliveDrab2", 179, 238, 58 },
- { "OliveDrab3", 154, 205, 50 },
- { "OliveDrab4", 105, 139, 34 },
- { "orange", 255, 165, 0 },
- { "orange red", 255, 69, 0 },
- { "orange1", 255, 165, 0 },
- { "orange2", 238, 154, 0 },
- { "orange3", 205, 133, 0 },
- { "orange4", 139, 90, 0 },
- { "OrangeRed", 255, 69, 0 },
- { "OrangeRed1", 255, 69, 0 },
- { "OrangeRed2", 238, 64, 0 },
- { "OrangeRed3", 205, 55, 0 },
- { "OrangeRed4", 139, 37, 0 },
- { "orchid", 218, 112, 214 },
- { "orchid1", 255, 131, 250 },
- { "orchid2", 238, 122, 233 },
- { "orchid3", 205, 105, 201 },
- { "orchid4", 139, 71, 137 },
- { "pale goldenrod", 238, 232, 170 },
- { "pale green", 152, 251, 152 },
- { "pale turquoise", 175, 238, 238 },
- { "pale violet red", 219, 112, 147 },
- { "PaleGoldenrod", 238, 232, 170 },
- { "PaleGreen", 152, 251, 152 },
- { "PaleGreen1", 154, 255, 154 },
- { "PaleGreen2", 144, 238, 144 },
- { "PaleGreen3", 124, 205, 124 },
- { "PaleGreen4", 84, 139, 84 },
- { "PaleTurquoise", 175, 238, 238 },
- { "PaleTurquoise1", 187, 255, 255 },
- { "PaleTurquoise2", 174, 238, 238 },
- { "PaleTurquoise3", 150, 205, 205 },
- { "PaleTurquoise4", 102, 139, 139 },
- { "PaleVioletRed", 219, 112, 147 },
- { "PaleVioletRed1", 255, 130, 171 },
- { "PaleVioletRed2", 238, 121, 159 },
- { "PaleVioletRed3", 205, 104, 137 },
- { "PaleVioletRed4", 139, 71, 93 },
- { "papaya whip", 255, 239, 213 },
- { "PapayaWhip", 255, 239, 213 },
- { "peach puff", 255, 218, 185 },
- { "PeachPuff", 255, 218, 185 },
- { "PeachPuff1", 255, 218, 185 },
- { "PeachPuff2", 238, 203, 173 },
- { "PeachPuff3", 205, 175, 149 },
- { "PeachPuff4", 139, 119, 101 },
- { "peru", 205, 133, 63 },
- { "pink", 255, 192, 203 },
- { "pink1", 255, 181, 197 },
- { "pink2", 238, 169, 184 },
- { "pink3", 205, 145, 158 },
- { "pink4", 139, 99, 108 },
- { "plum", 221, 160, 221 },
- { "plum1", 255, 187, 255 },
- { "plum2", 238, 174, 238 },
- { "plum3", 205, 150, 205 },
- { "plum4", 139, 102, 139 },
- { "powder blue", 176, 224, 230 },
- { "PowderBlue", 176, 224, 230 },
- { "purple", 160, 32, 240 },
- { "purple1", 155, 48, 255 },
- { "purple2", 145, 44, 238 },
- { "purple3", 125, 38, 205 },
- { "purple4", 85, 26, 139 },
- { "red", 255, 0, 0 },
- { "red1", 255, 0, 0 },
- { "red2", 238, 0, 0 },
- { "red3", 205, 0, 0 },
- { "red4", 139, 0, 0 },
- { "rosy brown", 188, 143, 143 },
- { "RosyBrown", 188, 143, 143 },
- { "RosyBrown1", 255, 193, 193 },
- { "RosyBrown2", 238, 180, 180 },
- { "RosyBrown3", 205, 155, 155 },
- { "RosyBrown4", 139, 105, 105 },
- { "royal blue", 65, 105, 225 },
- { "RoyalBlue", 65, 105, 225 },
- { "RoyalBlue1", 72, 118, 255 },
- { "RoyalBlue2", 67, 110, 238 },
- { "RoyalBlue3", 58, 95, 205 },
- { "RoyalBlue4", 39, 64, 139 },
- { "saddle brown", 139, 69, 19 },
- { "SaddleBrown", 139, 69, 19 },
- { "salmon", 250, 128, 114 },
- { "salmon1", 255, 140, 105 },
- { "salmon2", 238, 130, 98 },
- { "salmon3", 205, 112, 84 },
- { "salmon4", 139, 76, 57 },
- { "sandy brown", 244, 164, 96 },
- { "SandyBrown", 244, 164, 96 },
- { "sea green", 46, 139, 87 },
- { "SeaGreen", 46, 139, 87 },
- { "SeaGreen1", 84, 255, 159 },
- { "SeaGreen2", 78, 238, 148 },
- { "SeaGreen3", 67, 205, 128 },
- { "SeaGreen4", 46, 139, 87 },
- { "seashell", 255, 245, 238 },
- { "seashell1", 255, 245, 238 },
- { "seashell2", 238, 229, 222 },
- { "seashell3", 205, 197, 191 },
- { "seashell4", 139, 134, 130 },
- { "sienna", 160, 82, 45 },
- { "sienna1", 255, 130, 71 },
- { "sienna2", 238, 121, 66 },
- { "sienna3", 205, 104, 57 },
- { "sienna4", 139, 71, 38 },
- { "sky blue", 135, 206, 235 },
- { "SkyBlue", 135, 206, 235 },
- { "SkyBlue1", 135, 206, 255 },
- { "SkyBlue2", 126, 192, 238 },
- { "SkyBlue3", 108, 166, 205 },
- { "SkyBlue4", 74, 112, 139 },
- { "slate blue", 106, 90, 205 },
- { "slate gray", 112, 128, 144 },
- { "slate grey", 112, 128, 144 },
- { "SlateBlue", 106, 90, 205 },
- { "SlateBlue1", 131, 111, 255 },
- { "SlateBlue2", 122, 103, 238 },
- { "SlateBlue3", 105, 89, 205 },
- { "SlateBlue4", 71, 60, 139 },
- { "SlateGray", 112, 128, 144 },
- { "SlateGray1", 198, 226, 255 },
- { "SlateGray2", 185, 211, 238 },
- { "SlateGray3", 159, 182, 205 },
- { "SlateGray4", 108, 123, 139 },
- { "SlateGrey", 112, 128, 144 },
- { "snow", 255, 250, 250 },
- { "snow1", 255, 250, 250 },
- { "snow2", 238, 233, 233 },
- { "snow3", 205, 201, 201 },
- { "snow4", 139, 137, 137 },
- { "spring green", 0, 255, 127 },
- { "SpringGreen", 0, 255, 127 },
- { "SpringGreen1", 0, 255, 127 },
- { "SpringGreen2", 0, 238, 118 },
- { "SpringGreen3", 0, 205, 102 },
- { "SpringGreen4", 0, 139, 69 },
- { "steel blue", 70, 130, 180 },
- { "SteelBlue", 70, 130, 180 },
- { "SteelBlue1", 99, 184, 255 },
- { "SteelBlue2", 92, 172, 238 },
- { "SteelBlue3", 79, 148, 205 },
- { "SteelBlue4", 54, 100, 139 },
- { "tan", 210, 180, 140 },
- { "tan1", 255, 165, 79 },
- { "tan2", 238, 154, 73 },
- { "tan3", 205, 133, 63 },
- { "tan4", 139, 90, 43 },
- { "thistle", 216, 191, 216 },
- { "thistle1", 255, 225, 255 },
- { "thistle2", 238, 210, 238 },
- { "thistle3", 205, 181, 205 },
- { "thistle4", 139, 123, 139 },
- { "tomato", 255, 99, 71 },
- { "tomato1", 255, 99, 71 },
- { "tomato2", 238, 92, 66 },
- { "tomato3", 205, 79, 57 },
- { "tomato4", 139, 54, 38 },
- { "turquoise", 64, 224, 208 },
- { "turquoise1", 0, 245, 255 },
- { "turquoise2", 0, 229, 238 },
- { "turquoise3", 0, 197, 205 },
- { "turquoise4", 0, 134, 139 },
- { "violet", 238, 130, 238 },
- { "violet red", 208, 32, 144 },
- { "VioletRed", 208, 32, 144 },
- { "VioletRed1", 255, 62, 150 },
- { "VioletRed2", 238, 58, 140 },
- { "VioletRed3", 205, 50, 120 },
- { "VioletRed4", 139, 34, 82 },
- { "wheat", 245, 222, 179 },
- { "wheat1", 255, 231, 186 },
- { "wheat2", 238, 216, 174 },
- { "wheat3", 205, 186, 150 },
- { "wheat4", 139, 126, 102 },
- { "white", 255, 255, 255 },
- { "white smoke", 245, 245, 245 },
- { "WhiteSmoke", 245, 245, 245 },
- { "yellow", 255, 255, 0 },
- { "yellow green", 154, 205, 50 },
- { "yellow1", 255, 255, 0 },
- { "yellow2", 238, 238, 0 },
- { "yellow3", 205, 205, 0 },
- { "yellow4", 139, 139, 0 },
- { "YellowGreen", 154, 205, 50 },
- { NULL, 0, 0, 0 }
-};
-\f
-/*
- *----------------------------------------------------------------------
- *
- * FindColor --
- *
- * This routine finds the color entry that corresponds to the specified
- * color.
- *
- * Results:
- * Returns non-zero on success. The RGB values of the XColor will be
- * initialized to the proper values on success.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
-static int
-FindColor(
- const char *name,
- XColor *colorPtr)
-{
- int l, u, r, i = 0;
-
- /*
- * Count the number of elements in the color array if we haven't done so
- * yet.
- */
-
- if (numXColors == 0) {
- XColorEntry *ePtr;
- for (ePtr = xColors; ePtr->name != NULL; ePtr++) {
- numXColors++;
- }
- }
-
- /*
- * Perform a binary search on the sorted array of colors.
- */
-
- l = 0;
- u = numXColors - 1;
- while (l <= u) {
- i = (l + u) / 2;
- r = strcasecmp(name, xColors[i].name);
- if (r == 0) {
- break;
- } else if (r < 0) {
- u = i-1;
- } else {
- l = i+1;
- }
- }
- if (l > u) {
- return 0;
- }
- colorPtr->red = ((xColors[i].red << 8) | xColors[i].red);
- colorPtr->green = ((xColors[i].green << 8) | xColors[i].green);
- colorPtr->blue = ((xColors[i].blue << 8) | xColors[i].blue);
- return 1;
-}
-\f
-/*
- *----------------------------------------------------------------------
- *
- * XParseColor --
- *
- * Partial implementation of X color name parsing interface.
- *
- * Results:
- * Returns non-zero on success.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
-Status
-XParseColor(
- Display *display,
- Colormap map,
- const char *spec,
- XColor *colorPtr)
-{
- if (spec[0] == '#') {
- char fmt[16];
- int i, red, green, blue;
-
- if ((i = (int) strlen(spec+1))%3) {
- return 0;
- }
- i /= 3;
-
- snprintf(fmt, sizeof(fmt), "%%%dx%%%dx%%%dx", i, i, i);
- if (sscanf(spec+1, fmt, &red, &green, &blue) != 3) {
- return 0;
- }
- colorPtr->red = (((unsigned short) red) << (4 * (4 - i)))
- | ((unsigned short) red);
- colorPtr->green = (((unsigned short) green) << (4 * (4 - i)))
- | ((unsigned short) green);
- colorPtr->blue = (((unsigned short) blue) << (4 * (4 - i)))
- | ((unsigned short) blue);
- } else {
- if (!FindColor(spec, colorPtr)) {
- return 0;
- }
- }
- colorPtr->pixel = TkpGetPixel(colorPtr);
- colorPtr->flags = DoRed|DoGreen|DoBlue;
- colorPtr->pad = 0;
- return 1;
-}
-\f
-/*
- * Local Variables:
- * mode: c
- * c-basic-offset: 4
- * fill-column: 78
- * End:
- */
+++ /dev/null
-.TH INKPOT 1
-.SH NAME
-\fBinkpot\fR \- Color conversion tool
-.SH SYNOPSIS
-.ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i
-.PP
-.nf
-\f5
-inkpot put_color put_schemes get_schemes
-
-==> gotten_color
-
-\fP
-.fi
-.SH DESCRIPTION
-\fIinkpot\fP provides a facility for translating colors.
-
-.SH AUTHOR
-John Ellson (ellson@research.att.com), AT&T
+++ /dev/null
-.TH LIBINKPOT 3
-.SH NAME
-\fBlibinkpot\fR \- Color management library
-.SH SYNOPSIS
-.ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i
-.PP
-.nf
-\f5
-#include <inkpot.h>
-
-\fP
-.fi
-.SH DESCRIPTION
-\fIlibinkpot\fP provides a facility for translating colors.
-
-.SH AUTHOR
-John Ellson (ellson@research.att.com), AT&T
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <getopt.h>
-#include <assert.h>
-
-#include <inkpot/inkpot.h>
-
-char *Info[] = {
- "inkpot", /* Program */
- "1","2008"
-#if 0
- VERSION, /* Version */
- BUILDDATE /* Build Date */
-#endif
-};
-
-static const char *usage =
- ": inkpot [<color>]\n\
- -f <schemes> - input color scheme, or ',' separated list of schemes\n\
- -t <scheme> - output solor scheme\n\
- -V - print version info\n\
- -? - print usage info\n\
- If no color is specified, a stdin is processed for color tokens.\n";
-
-static void scanArgs(inkpot_t *inkpot, int argc, char **argv)
-{
- int c;
-
- while ((c = getopt(argc, argv, ":?Vf:t:o:")) != -1) {
- switch (c) {
- case 'f':
- inkpot_schemes_put(inkpot, optarg);
- break;
- case 't':
- inkpot_scheme_get(inkpot, optarg);
- break;
- case 'V':
- fprintf(stderr, "%s version %s (%s)\n",
- Info[0], Info[1], Info[2]);
- exit(0);
- break;
- case '?':
- fprintf(stderr,"%s\n", usage);
- exit(0);
- break;
- case ':':
- fprintf (stderr, "missing argument for option -%c\n", optopt);
- break;
- default:
- fprintf(stderr,"option -%c unrecognized\n", optopt);
- }
- }
-}
-
-
-int main (int argc, char *argv[])
-{
- inkpot_t *inkpot;
- inkpot_status_t rc;
- char *color;
- double rgba[4], hsva[4], cmyk[4];
-
- inkpot = inkpot_init();
- if (!inkpot) {
- fprintf(stderr, "failure to initialize inkpot\n");
- return 0;
- }
-
- inkpot_schemes_put(inkpot, "x11");
- inkpot_scheme_get(inkpot, "x11");
-
- scanArgs(inkpot, argc, argv);
-
- /* requested color */
- if (argc < 2)
- color = NULL;
- else
- color = argv[1];
-
- inkpot_debug_schemes(inkpot);
-
-#if 0
- inkpot_debug_names(inkpot);
-
- inkpot_debug_out_names(inkpot);
-
- inkpot_debug_values(inkpot);
-#endif
-
- fprintf(stdout, "%s ", color); /* ' ' after %s so it doesn't crash on NULL */
- rc = inkpot_put(inkpot, color);
- if (rc == INKPOT_COLOR_UNKNOWN)
- fprintf(stdout, "(unknown)");
- fprintf(stdout, "\n text: ");
-
- rc = inkpot_write(inkpot);
- if (rc == INKPOT_COLOR_NONAME || rc == INKPOT_NOPALETTE) {
- fprintf(stdout, "#");
- rc = inkpot_write_rgba8(inkpot);
- }
- assert (rc == INKPOT_SUCCESS);
-
- rc = inkpot_get_rgba(inkpot, rgba);
- assert (rc == INKPOT_SUCCESS);
- fprintf(stdout, "\n rgba: %.3f,%.3f,%.3f,%.3f\n",
- rgba[0], rgba[1], rgba[2], rgba[3]);
-
- rc = inkpot_get_hsva(inkpot, hsva);
- assert (rc == INKPOT_SUCCESS);
- fprintf(stdout, " hsva: %.3f,%.3f,%.3f,%.3f\n",
- hsva[0], hsva[1], hsva[2], hsva[3]);
-
- rc = inkpot_get_cmyk(inkpot, cmyk);
- assert (rc == INKPOT_SUCCESS);
- fprintf(stdout, " cmyk: %.3f,%.3f,%.3f,%.3f\n",
- cmyk[0], cmyk[1], cmyk[2], cmyk[3]);
-
- inkpot_destroy(inkpot);
- return 0;
-}
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#ifndef INKPOT_H
-#define INKPOT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
- INKPOT_SUCCESS=0,
- INKPOT_MALLOC_FAIL,
- INKPOT_COLOR_UNKNOWN,
- INKPOT_COLOR_NONAME,
- INKPOT_SCHEME_UNKNOWN,
- INKPOT_NOPALETTE,
- INKPOT_NOSUCH_INDEX
-} inkpot_status_t;
-
-typedef struct inkpot_s inkpot_t;
-
-typedef struct inkpot_write_disc_s {
- size_t (*writer) (void *closure, const char *data, size_t length);
-} inkpot_write_disc_t;
-
-extern inkpot_t * inkpot_init ( void );
-extern void inkpot_destroy ( inkpot_t *inkpot );
-
-extern inkpot_status_t inkpot_write_disc ( inkpot_t *inkpot, inkpot_write_disc_t disc);
-extern inkpot_status_t inkpot_write_closure ( inkpot_t *inkpot, void *closure);
-
-extern inkpot_status_t inkpot_schemes_put ( inkpot_t *inkpot, const char *schemes );
-extern inkpot_status_t inkpot_scheme_get ( inkpot_t *inkpot, const char *scheme );
-
-extern inkpot_status_t inkpot_put ( inkpot_t *inkpot, const char *color );
-extern inkpot_status_t inkpot_put_rgba_i ( inkpot_t *inkpot, unsigned short rgba[4] );
-extern inkpot_status_t inkpot_put_hsva_i ( inkpot_t *inkpot, unsigned short hsva[4] );
-extern inkpot_status_t inkpot_put_cmyk_i ( inkpot_t *inkpot, unsigned short cmyk[4] );
-extern inkpot_status_t inkpot_put_rgba ( inkpot_t *inkpot, double rgba[4] );
-extern inkpot_status_t inkpot_put_hsva ( inkpot_t *inkpot, double hsva[4] );
-extern inkpot_status_t inkpot_put_cmyk ( inkpot_t *inkpot, double cmyk[4] );
-
-extern inkpot_status_t inkpot_get ( inkpot_t *inkpot, const char **color );
-extern inkpot_status_t inkpot_get_rgba_i ( inkpot_t *inkpot, unsigned short rgba[4] );
-extern inkpot_status_t inkpot_get_hsva_i ( inkpot_t *inkpot, unsigned short hsva[4] );
-extern inkpot_status_t inkpot_get_cmyk_i ( inkpot_t *inkpot, unsigned short cmyk[4] );
-extern inkpot_status_t inkpot_get_rgba ( inkpot_t *inkpot, double rgba[4] );
-extern inkpot_status_t inkpot_get_hsva ( inkpot_t *inkpot, double hsva[4] );
-extern inkpot_status_t inkpot_get_cmyk ( inkpot_t *inkpot, double cmyk[4] );
-
-extern inkpot_status_t inkpot_write ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_write_rgba16 ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_write_rgb16 ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_write_rgba8 ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_write_rgb8 ( inkpot_t *inkpot );
-
-extern inkpot_status_t inkpot_debug_schemes ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_debug_names ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_debug_out_names ( inkpot_t *inkpot );
-extern inkpot_status_t inkpot_debug_values ( inkpot_t *inkpot );
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* INKPOT_H */
+++ /dev/null
-#!/usr/bin/tclsh
-
-set comments 1
-
-set preamble "/*\n * DO NOT EDIT !!\n *\n * The files:\n *\tinkpot_lib_define.h\n *\tinkpot_lib_value.h\n *\tinkpot_lib_scheme.h\n *\tinkpot_lib_string.h\n * are generated as a matched set.\n */\n"
-
-if {! $argc} {exit}
-
-source inkpot_lib_procs.tcl
-
-#------------------------------------------------- set_up
-# merge input data
-foreach {lib} $argv {
- set f [open $lib r]
- foreach {color value} [read $f [file size $lib]] {
- set COLORS($color) $value
- }
- close $f
-
- setfrom {scheme coding} $COLORS()
- array unset COLORS {}
- set ALL_STRINGS($scheme) {}
- set ALL_SCHEMES($scheme) {}
-
- foreach {color} [array names COLORS] {
- set value $COLORS($color)
-
- # if a named color ends in a number, convert it to an indexed color
- if {[llength $color] == 1
- && [regexp -- {([a-z]+)([0-9]+)} $color . icolor index] == 1} {
- unset COLORS($color)
- set color [list $icolor $index]
- set COLORS($color) $value
- }
-
- switch [llength $color] {
- 1 {
- set icolor $color
- set range 1
- set index 0
- }
- 2 {
- setfrom {icolor index} $color
- set range 0
- }
- 3 {
- setfrom {icolor range index} $color
- if {$range == 1} {
- puts stderr "Weird. Unexpected range==1. I guess that means I can't use 1 as a flag! $color $value $scheme"
- exit
- }
- }
- default {
- puts stderr "Weird! Too many fields in: \"$color\""
- exit
- }
- }
- map C_RIV $icolor [list $range $index $value] $scheme
- set ALL_STRINGS($icolor) {}
- }
- array unset COLORS
-}
-
-#------------------------------------------------- crunch some data ----------
-
-# find all unique color_schemeset_range and list index_value
-# find all unique value and list color_schemeset_range_index
-foreach {m2} [lsort -dictionary [mapm2 C_RIV]] {
- setfrom {RIV schemes} $m2
- setfrom {range index value} $RIV
- foreach {m1} [map2m1 C_RIV $RIV] {
- lappend ALL_COLORSCHEMESRANGES([list $m1 $range]) [list $index $value]
- lappend ALL_VALUES($value) [list $m1 $range $index]
- }
-}
-#share rangesets between aliases such as grey/0-100 and gray/0-100
-foreach {m1_range} [array names ALL_COLORSCHEMESRANGES] {
- set rangeset [concat [lsort -dictionary -unique $ALL_COLORSCHEMESRANGES($m1_range)]]
- lappend ALL_RANGESETS($rangeset) $m1_range
-}
-
-#------------------------------------------------- write inkpot_lib_value.h
-set f [open inkpot_lib_value.h w]
-puts $f $preamble
-
-
-proc format_color {color range index} {
- switch $range {
- 0 {
- set color $color$index
- }
- 1 {
- if {$index} {
- puts stderr "Weird! Color with range == 1 but index != 0. $color/$range/$index"
- exit
- }
- # otherwise just $color
- }
- default {
- set color $color$range/$index
- }
- }
- return $color
-}
-
-# generate TAB_VALUES_24
-tab_initialize $f {set SZT_VALUES} {set comment} \
- "unsigned char TAB_VALUES_24\[SZT_VALUES_24\] = {"
-set SZT_VALUES 0
-foreach {value} [lsort -dictionary [array names ALL_VALUES]] {
- setfrom {r g b} $value
- tab_elem [format "0x%02x,0x%02x,0x%02x," $r $g $b]
- set comment [list]
- foreach {m1_range_index} [lsort -unique $ALL_VALUES($value)] {
- setfrom {{color schemes} range index} $m1_range_index
- lappend comment [list $schemes [format_color $color $range $index]]
- }
- tab_row
- set ALL_VALUES_coded($value) $SZT_VALUES
- incr SZT_VALUES
-}
-tab_finalize "};\n"
-
-close $f
-#------------------------------------------------- write inkpot_lib_string.h
-set f [open inkpot_lib_string.h w]
-puts $f $preamble
-
-# generate TAB_STRINGS
-set SZT_STRINGS 0
-set SZL_STRINGS 0
-set SZW_STRINGS 0
-tab_initialize $f {set SZT_STRINGS} {set len} \
- "const char TAB_STRINGS\[SZT_STRINGS\] = {"
-foreach {string} [lsort -ascii [array names ALL_STRINGS]] {
- set len [string length $string]
- # include the null
- incr len
- tab_elem "\"$string\\0\""
- tab_row
- set ALL_STRINGS_coded($string) $SZT_STRINGS
- incr SZW_STRINGS
- if {$len > $SZL_STRINGS} {set SZL_STRINGS $len}
- incr SZT_STRINGS $len
-}
-tab_finalize "};\n"
-# don't count the null in the length of the longest string
-incr SZL_STRINGS -1
-
-close $f
-#------------------------------------------------- write inkpot_lib_scheme.h
-set f [open inkpot_lib_scheme.h w]
-puts $f $preamble
-
-
-# generate TAB_SCHEMES
-set SZT_SCHEMES 0
-tab_initialize $f {set SZT_SCHEMES} {set scheme} \
- "inkpot_scheme_t TAB_SCHEMES\[SZT_SCHEMES\] = {"
-foreach {scheme} [lsort -ascii [array names ALL_SCHEMES]] {
- tab_elem "{$ALL_STRINGS_coded($scheme)},"
- tab_row
- set ALL_SCHEMES_coded($scheme) [list $SZT_SCHEMES [expr 1 << $SZT_SCHEMES]]
- incr SZT_SCHEMES
-}
-tab_finalize "};\n"
-
-
-# generate TAB_INDEXES
-set SZT_INDEXES 0
-set index -1
-tab_initialize $f {set SZT_INDEXES} {set comment} \
- "IDX_VALUES_t TAB_INDEXES\[SZT_INDEXES\] = {"
-foreach {rangeset} [lsort -dictionary [array names ALL_RANGESETS]] {
- set size [llength $rangeset]
- if {$size == 1} {
- #simple non-indexed color
- setfrom {{index value}} $rangeset
- if {$index} {
- puts stderr "Weird! Non-zero index $index for non-indexed color"
- exit
- }
- foreach {m1_range} $ALL_RANGESETS($rangeset) {
- setfrom {{color schemes} range} $m1_range
- if {$range != 1} {
- puts stderr "Weird! Range $range != 1 for non-indexed color"
- exit
- }
- lappend ALL_ALTS($color) [list $value $schemes]
- }
- } {
- tab_row
- set found 0
- set first_szt_index $SZT_INDEXES
- foreach {index_value} $rangeset {
- setfrom {index value} $index_value
- if {! $found} {
- set min_index $index
- set max_index $index
- incr found
- } {
- if {$index < $min_index} {set min_index $index}
- if {$index > $max_index} {set max_index $index}
- }
- tab_elem $ALL_VALUES_coded($value),
- incr SZT_INDEXES
- }
- set last_index $index
- set comment [list]
- foreach {m1_range} $ALL_RANGESETS($rangeset) {
- setfrom {m1 range} $m1_range
- setfrom {color schemes} $m1
- if {$range} {
- if {$range != $size} {
- puts stderr "Weird! Range doesn't match size. $m1 $range != $size"
- exit
- }
- } {
- set range $size
- }
- lappend comment [list $schemes $color/$range/$min_index-$max_index]
- set ALL_RANGES_coded([list $m1 $range]) [list $first_szt_index $size]
- }
- }
-}
-tab_finalize "};\n"
-
-# generate TAB_RANGES
-set SZT_RANGES 0
-set last_color ""
-set last_schemes ""
-tab_initialize $f {set SZT_RANGES} {list $last_schemes $last_color $cnt} \
- "inkpot_range_t TAB_RANGES\[SZT_RANGES\] = {"
-foreach {m1_range} [lsort -ascii [array names ALL_RANGES_coded]] {
- setfrom {{color schemes} range} $m1_range
- setfrom {first_idx size} $ALL_RANGES_coded($m1_range)
- set scheme_bits 0
- foreach {scheme} $schemes {
- setfrom {scheme_idx scheme_bit} $ALL_SCHEMES_coded($scheme)
- set scheme_bits [expr $scheme_bits | $scheme_bit]
- }
- if {! [string equal $last_color $color]} {
- tab_row
- set cnt 0
- set last_color $color
- set last_schemes $schemes
- set ALL_ALTS_coded($color) "0,$SZT_RANGES"
- }
- tab_elem "{$size,[format {0x%x} $scheme_bits],$first_idx},"
- incr SZT_RANGES
- incr cnt
-}
-tab_finalize ""
-
-#accumulate altsets for all non-indexed colors
-foreach {color} [lsort -ascii [array names ALL_ALTS]] {
- lappend ALL_ALTSETS($ALL_ALTS($color)) $color
-}
-
-# generate TAB_ALTS - continuation of TAB_RANGES
-tab_initialize $f {set first_idx} {set aliases} \
- "/* altsets */\n"
-foreach {altset} [lsort -dictionary [array names ALL_ALTSETS]] {
- set aliases [lsort -ascii -unique $ALL_ALTSETS($altset)]
- set cnt [llength $altset]
- switch $cnt {
- 0 {
- puts stderr "Weird. Shouldn't happen - has to be at least one alt in an altset"
- }
- 1 {
- setfrom {{value schemes}} $altset
- set scheme_bits 0
- foreach {scheme} $schemes {
- setfrom {scheme_idx scheme_bit} $ALL_SCHEMES_coded($scheme)
- set scheme_bits [expr $scheme_bits | $scheme_bit]
- }
- foreach {color} $aliases {
- set ALL_ALTS_coded($color) "[format {0x%x} $scheme_bits],$ALL_VALUES_coded($value)"
- }
- # don't need entry in TAB_ALTS for this case
- }
- default {
- set first_idx $SZT_RANGES
- foreach {value_schemes} $altset {
- setfrom {value schemes} $value_schemes
- set scheme_bits 0
- foreach {scheme} $schemes {
- setfrom {scheme_idx scheme_bit} $ALL_SCHEMES_coded($scheme)
- set scheme_bits [expr $scheme_bits | $scheme_bit]
- }
- tab_elem "{[incr cnt -1],[format {0x%x} $scheme_bits],$ALL_VALUES_coded($value)},"
- incr SZT_RANGES
- foreach {color} $aliases {
- set ALL_ALTS_coded($color) "0,$first_idx"
- }
- }
- }
- }
- tab_row
-}
-tab_finalize "};\n"
-
-# generate TAB_NAMES
-set SZT_NAMES 0
-tab_initialize $f {set SZT_NAMES} {set color} \
- "inkpot_name_t TAB_NAMES\[SZT_NAMES\] = {"
-foreach {color} [lsort [map1 C_RIV]] {
- tab_elem "{$ALL_STRINGS_coded($color),$ALL_ALTS_coded($color)},"
- tab_row
- set ALL_NAMES_coded($color) $SZT_NAMES
- incr SZT_NAMES
-}
-tab_finalize "};\n"
-
-
-# generate TAB_TO_NAMES
-set SZT_TO_NAMES 0
-tab_initialize $f {set SZT_TO_NAMES} {set alias_set} \
- "IDX_NAMES_t TAB_TO_NAMES\[SZT_TO_NAMES\] = {"
-foreach {m2} [lsort -dictionary [mapm2 C_RIV]] {
- set alias_set [mapm21 C_RIV $m2]
- setfrom {value schemeset} $m2
- set ALL_TO_NAMES_coded($value) $SZT_TO_NAMES
- set first_idx $SZT_TO_NAMES
- foreach {color} $alias_set {
- tab_elem $ALL_NAMES_coded($color),
- lappend comment $color
- incr SZT_TO_NAMES
- }
- tab_row
-}
-tab_finalize "};\n"
-
-
-# generate TAB_VALUE_TO
-set SZT_VALUE_TO 0
-tab_initialize $f {set SZT_VALUE_TO} {set ALL_TO_NAMES_coded($value)} \
- "IDX_TO_NAMES_t TAB_VALUE_TO\[SZT_VALUE_TO\] = {"
-# NB - this sort order must match TAB_VALUES
-foreach {value} [lsort -dictionary [map2 C_RIV]] {
- tab_elem $ALL_TO_NAMES_coded($value),
- tab_row
- incr SZT_VALUE_TO
-}
-tab_finalize "};\n"
-
-
-close $f
-#------------------------------------------------- write inkpot_lib_define.h
-set f [open inkpot_lib_define.h w]
-puts $f $preamble
-
-set SZT_VALUES_24 [expr 3*$SZT_VALUES]
-
-puts $f "\#define SZL_STRINGS $SZL_STRINGS"
-puts $f "\#define SZW_STRINGS $SZW_STRINGS"
-puts $f ""
-foreach {i} {
- STRINGS SCHEMES NAMES VALUES VALUE_TO TO_NAMES
- INDEXES RANGES VALUES_24
-} {
- if {[set SZT_$i] < 256} {
- set int "unsigned char"
- } elseif {[set SZT_$i] < 65536} {
- set int "unsigned short"
- } elseif {[set SZT_$i] < 65536*65536} {
- set int "unsigned int"
- } else {
- set int "unsigned long"
- }
- puts $f "\#define SZT_$i [set SZT_$i]"
- puts $f "typedef $int IDX_[set i]_t\;"
- puts $f ""
-}
-foreach {i} {SCHEMES} {
- if {[set SZT_$i] < 8} {
- set int "unsigned char"
- } elseif {[set SZT_$i] < 16} {
- set int "unsigned short"
- } elseif {[set SZT_$i] < 32} {
- set int "unsigned int"
- } elseif {[set SZT_$i] < 64} {
- set int "unsigned long"
- } else {
- puts stderr "more that 64 bits in MSK_[set i]_t"
- }
- puts $f "typedef $int MSK_[set i]_t\;"
- puts $f ""
-}
-close $f
+++ /dev/null
-#!/usr/bin/tclsh
-
-set fn $argv
-
-set f [open $fn r]
-set d [read $f [file size $fn]]
-close $f
-
-regsub -all -line -- {#.*$} $d {} d
-regsub -all -line -- {$} $d {:} d
-regsub -all -line -- {^} $d {:} d
-regsub -all -- {\"} $d {} d
-
-foreach {rec ColorName NumOfColors Type CritVal ix ixa r g b SchemeType} [regexp -all -inline -- {:(\w*),(\d*),(\w*),([.\d]*),(\d+),(\w+),(\d+),(\d+),(\d+),(\w*):} $d] {
-
- if {[string length $ColorName]} {
- set nam $ColorName
- set n $NumOfColors
- set typ $Type
- set crit $CritVal
- if {[string length $SchemeType]} {
- set styp $SchemeType
- }
-
- set t $nam
- set l [string length $t]
- regsub -all -- {\d} $d {} d
- set ll [string length $t]
- if {$l != $ll} {
- puts stderr "$argv0: scheme $nam contains digits!"
- }
- }
-
- if {! [info exists nam]} {
- puts stderr "$argv0: ColorName was not set before use"
- }
-
-if {1} {
-#
-# oranges/j is inconsistent
-#
- set ixn [string first $ixa "abcdefghijklmnopqrstuvwxyz"]
- if {$ixn < 0} {
- puts stderr "$argv0: Failed to convert alpha index \"$ixa\" to an integer"
- }
- incr ixn
-
- set nam_ixn [list $nam $ixn]
- if {[info exists COLORS($nam_ixn)]} {
- foreach {rr gg bb} $COLORS($nam_ixn) {break}
- if {$r != $rr || $g != $gg || $b != $bb} {
- puts stderr ""
- puts stderr "$argv0: \"$nam $ixa\" is not unique"
- puts stderr " and rgb doesn't match: $r $g $b != $rr $gg $bb"
- puts stderr " in record: [string trim $rec :]"
- puts stderr " Retaining first value found, discarding second."
- puts stderr ""
- } {
- # puts "$nam ixa is not unique"
- }
- }
- set COLORS($nam_ixn) [list $r $g $b]
-}
-
-if {1} {
- set nam_n_ix [list $nam $n $ix]
- if {[info exists COLORS($nam_n_ix)]} {
- foreach {rr gg bb} $COLORS($nam_n_ix) {break}
- if {$r != $rr || $g != $gg || $b != $bb} {
- puts stderr "\"$nam_n_ix\" is not unique and rgb doesn't match: $r $g $b != $rr $gg $bb"
- puts stderr $rec
- puts ":$nam,$n,$typ,$crit,$ix,$ixa,$r,$g,$b,$styp:"
- puts "\"$ixa\" = $ixn"
-
- puts stderr ""
- foreach {color} [lrange [lsort -ascii [array name COLORS]] end-5 end] {
- puts stderr "$argv0: COLORS\($color\) = $COLORS($color)"
- }
- exit
- } {
- # puts "$nam_n_ix is not unique"
- }
- }
- set COLORS($nam_n_ix) [list $r $g $b]
-}
-}
-
-set COLORS() [list brewer rgb]
-
-set f [open inkpot_lib_brewer.dat w]
-puts $f [array get COLORS]
-close $f
+++ /dev/null
-# some support procs
-
-###########################################################
-# TAB support formatting of outputput tables
-
-# private procs
-proc tab_start_row { } {
- global comments
- upvar 2 TAB_pos pos
- upvar 2 TAB_chan ch
- upvar 2 TAB_row_start rstart
- set indent " "
- if {$pos == 0} {
- if {$comments} {
- set s "$indent/* [uplevel 2 $rstart] */"
- set w [expr 16 - [string length $s]]
- if {$w < 0} {set w 0}
- set s $s[format "%.[set w]s" " "]
- } {
- set s $indent
- }
- puts -nonewline $ch $s
- set pos [string length $s]
- }
-}
-
-proc tab_end_row { } {
- global comments
- upvar 2 TAB_pos pos
- upvar 2 TAB_chan ch
- upvar 2 TAB_row_end rend
- if {$comments} {
- if {$pos > 40} {
- puts -nonewline $ch "\n\t\t\t\t\t"
- }
- set w [expr 5 - $pos / 8]
- if {$w < 0} {set w 0}
- set s " /* [uplevel 2 $rend] */"
- puts $ch [format "%.[set w]s" "\t\t\t\t\t"]$s
- set pos 0
- }
-}
-
-
-# public procs
-proc tab_initialize {
- chan
- row_start
- row_end
- table_start
-} {
- upvar TAB_pos pos
- upvar TAB_chan ch
- upvar TAB_row_start rstart
- upvar TAB_row_end rend
- set ch $chan
- set rstart $row_start
- set rend $row_end
- puts $ch $table_start
- set pos 0
-}
-
-proc tab_finalize { table_end } {
- upvar TAB_pos pos
- upvar TAB_chan ch
- if {$pos} { tab_end_row }
- puts $ch $table_end
-}
-
-proc tab_elem {data} {
- global comments
- upvar TAB_pos pos
- upvar TAB_chan ch
- if {$pos > 72} {
- if {$comments} {
- puts -nonewline $ch "\n\t\t"
- set pos 16
- } {
- puts $ch ""
- set pos 0
- }
- }
- if {$pos == 0} { tab_start_row }
- puts -nonewline $ch $data
- incr pos [string length $data]
-}
-
-proc tab_row { } {
- upvar TAB_pos pos
- if {$pos} { tab_end_row }
-}
-
-###################################################################
-# DEBUG
-
-# print some summary information about an array
-proc print_first {a} {
- upvar #0 $a b
- set size [llength [array names b]]
- if {$size} {
- set first [lindex [array names b] 0]
- set value $b($first)
- } {
- set first {}
- set value {}
- }
- set totelem 0
- set maxelem 0
- foreach {n} [array names b] {
- set elems [llength $b($n)]
- if {$elems > $maxelem} {set maxelem $elems}
- incr totelem $elems
- }
- puts stderr [list $a size:$size maxelem:$maxelem totelem:$totelem first: $a\($first) $value]
-}
-
-####################################################################
-# setfrom pattern struct
-#
-# recursive proc for unpacking pseudo-structs with llength checks
-
-proc setfrom {pattern struct {d_ {1}}} {
- set l_ [llength $pattern]
- if {$l_ != [llength $struct]} {
- puts stderr "setfrom: llengths don't match: \"$pattern\" \"$struct\""
- exit
- }
- for {set i_ 0} {$i_ < $l_} {incr i_} {
- set p_ [lindex $pattern $i_]
- set s_ [lindex $struct $i_]
- if {[llength $p_] > 1} {
- setfrom $p_ $s_ [expr $d_ + 1]
- } {
- upvar $d_ $p_ $p_
- set $p_ $s_
- }
- }
-}
-
-
-####################################################################
-# MAP --mapping m:n relationships between elements of 2 sets
-#
-# Public procs:
-#
-# map {M x y r} : put into M the relation x-y labeled r
-#
-# map1 {M} : get {x...}
-# map2 {M} : get {y...}
-# mapm1 {M} : get {{x {r...}}...}
-# mapm2 {M} : get {{y {r...}}...}
-# map1m2 {M x} : from x get {y {r...}}
-# map2m1 {M y} : from y get {x {r...}}
-# mapm21 {M m2} : from m2 get {x...}
-# mapm12 {M m1} : from m1 get {y...}
-# map12 {M x} : from x get {y...}
-# map21 {M y} : from y get {x...}
-#
-
-#populate the map M with a single x-y pairing labeled r
-proc map {M x y r} {
- upvar #0 MAP_[set M]_12_3 MAP_12_3
- upvar #0 MAP_[set M]_m2_1 MAP_m2_1
- if {[info exists MAP_m2_1]} {
- puts stderr "flushing crunched MAP data for new values"
- upvar #0 MAP_[set M]_m1_2 MAP_m1_2
- upvar #0 MAP_[set M]_2_m1 MAP_2_m1
- upvar #0 MAP_[set M]_1_m2 MAP_1_m2
- array unset MAP_m2_1
- array unset MAP_m1_2
- array unset MAP_2_m1
- array unset MAP_1_m2
- }
- lappend MAP_12_3([list $x $y]) $r
-}
-
-#lazily crunch the map
-proc mapc {M map} {
- switch $map {
- "12-3" {
- upvar #0 MAP_[set M]_12_3 MAP_12_3
- if {! [info exists MAP_12_3]} {
- puts stderr "MAP_[set M]_12_3 doesn't exist. Use the "map" proc to create and populate."
- }
- }
- m2_1 - m1_2 {
- upvar #0 MAP_[set M]_12_3 MAP_12_3
- upvar #0 MAP_[set M]_m2_1 MAP_m2_1
- upvar #0 MAP_[set M]_m1_2 MAP_m1_2
- foreach {xy} [array names MAP_12_3] {
- setfrom {x y} $xy
- set r_set [lsort -unique $MAP_12_3($xy)]
- set m1 [list $x $r_set]
- set m2 [list $y $r_set]
- lappend MAP_m2_1($m2) $x
- lappend MAP_m1_2($m1) $y
- }
- }
- 1_m2 {
- upvar #0 MAP_[set M]_m2_1 MAP_m2_1
- upvar #0 MAP_[set M]_1_m2 MAP_1_m2
- if {! [info exists MAP_m2_1]} {mapc $M m2_1}
- foreach {m2} [lsort [array names MAP_m2_1]] {
- foreach {x} $MAP_m2_1($m2) {
- lappend MAP_1_m2($x) $m2
- }
- }
- }
- 2_m1 {
- upvar #0 MAP_[set M]_m1_2 MAP_m1_2
- upvar #0 MAP_[set M]_2_m1 MAP_2_m1
- if {! [info exists MAP_m2_1]} {mapc $M m2_1}
- if {! [info exists MAP_m1_2]} {mapc $M m1_2}
- foreach {m1} [lsort [array names MAP_m1_2]] {
- foreach {y} $MAP_m1_2($m1) {
- lappend MAP_2_m1($y) $m1
- }
- }
- }
- }
-}
-
-proc map1 {M} { ;#get {x...}
- upvar #0 MAP_[set M]_1_m2 MAP_1_m2
- if {! [info exists MAP_1_m2]} {mapc $M 1_m2}
- array names MAP_1_m2
-}
-proc map2 {M} { ;#get {y...}
- upvar #0 MAP_[set M]_2_m1 MAP_2_m1
- if {! [info exists MAP_2_m1]} {mapc $M 2_m1}
- array names MAP_2_m1
-}
-proc mapm1 {M} { ;#get {{x {r...}}...}
- upvar #0 MAP_[set M]_m1_2 MAP_m1_2
- if {! [info exists MAP_m1_2]} {mapc $M m1_2}
- array names MAP_m1_2
-}
-proc mapm2 {M} { ;#get {{y {r...}}...}
- upvar #0 MAP_[set M]_m2_1 MAP_m2_1
- if {! [info exists MAP_m2_1]} {mapc $M m2_1}
- array names MAP_m2_1
-}
-proc map1m2 {M x} { ;#from x get {y {r...}}
- upvar #0 MAP_[set M]_1_m2 MAP_1_m2
- if {! [info exists MAP_1_m2]} {mapc $M 1_m2}
- set MAP_1_m2($x)
-}
-proc map2m1 {M y} { ;#from y get {x {r...}}
- upvar #0 MAP_[set M]_2_m1 MAP_2_m1
- if {! [info exists MAP_2_m1]} {mapc $M 2_m1}
- set MAP_2_m1($y)
-}
-proc mapm21 {M m2} { ;#from m2 get {x...}
- upvar #0 MAP_[set M]_m2_1 MAP_m2_1
- if {! [info exists MAP_m2_1]} {mapc $M m2_1}
- lsort -unique $MAP_m2_1($m2)
-}
-proc mapm12 {M m1} { ;#from m1 get {y...}
- upvar #0 MAP_[set M]_m1_2 MAP_m1_2
- if {! [info exists MAP_m1_2]} {mapc $M m1_2}
- lsort -unique $MAP_m1_2($m1)
-}
-proc map12 {M x} { ;#from x get {y...}
- upvar #0 MAP_[set M]_1_m2 MAP_1_m2
- if {! [info exists MAP_1_m2]} {mapc $M 1_m2}
- set res [list]
- foreach {m} $MAP_1_m2($x) {
- setfrom {y r_set} $m
- lappend res $y
- }
- lsort -unique $res
-}
-proc map21 {M y} { ;#from y get {x...}
- upvar #0 MAP_[set M]_2_m1 MAP_2_m1
- if {! [info exists MAP_2_m1]} {mapc $M 2_m1}
- set res [list]
- foreach {m} $MAP_2_m1($y) {
- setfrom {x r_set} $m
- lappend res $x
- }
- lsort -unique $res
-}
-
-proc map_debug {M} {
- foreach {map} [list 12_3 m2_1 m1_2 m2_3 m1_3 1_m2 2_m1 3_m1 3_m2] {
- upvar #0 MAP_[set M]_$map MAP_$map
- if {! [info exists MAP_$map]} {mapc $M $map}
- puts "MAP_[set M]_$map :"
- print_first MAP_[set M]_$map
- }
-}
-
-if {0} { ;# for testing
- map CV black 0 svg
- map CV black 0 x11
- map CV black 0 tk
- map CV grey0 0 svg
- map CV grey0 0 x11
- map CV grey0 0 tk
- map CV noir 0 french
- map CV green 2 svg
- map CV lime 1 svg
- map CV green 1 x11
- map CV green 1 tk
- map CV lime 1 tk
- map CV lime 1 x11
- map CV vert 1 french
-
- puts [info vars]
- puts ""
- map_debug CV
- puts ""
-
- puts "map1 CV : [lsort [map1 CV]]"
- puts " expected : black green grey0 lime noir vert"
- puts "map2 CV : [lsort [map2 CV]]"
- puts " expected : 0 1 2"
- puts "map1m2 CV green : [map1m2 CV green]"
- puts " expected : {1 {tk x11}} {2 svg}"
- puts "map2m1 CV 2 : [map2m1 CV 2]"
- puts " expected : {green svg}"
- puts "map12 CV green : [map12 CV green]"
- puts " expected : 1 2"
- puts "map21 CV 1 : [map21 CV 1]"
- puts " expected : green lime vert"
- puts "mapm12 CV {green svg} : [mapm12 CV {green svg}]"
- puts " expected : 2"
- puts "mapm21 CV {0 {svg tk x11}} : [mapm21 CV {0 {svg tk x11}}]"
- puts " expected : black grey0"
-}
+++ /dev/null
-#!/usr/bin/tclsh
-
-set fn $argv
-
-set f [open $fn r]
-set d [read $f [file size $fn]]
-close $f
-regsub -all -- {[-= \t\n\r\"/]} $d {} d
-
-foreach {. c rgb r g b} [regexp -all -inline -- {e>(\w+)<\w+><\w+><\w+><\w+>(\w+)\((\d+),(\d+),(\d+)\)} $d] {
- if {![string equal $rgb rgb]} {
- puts stderr "non rgb color found: $c $rgb $r $g $b"
- }
- if {[info exists COLORS($c)]} {
- foreach {rr gg bb} $COLORS($c) {break}
- if {$r != $rr || $g != $gg || $b != $bb} {
- puts "$c is not unique and rgb doesn't match: $r $g $b != $rr $gg $bb"
- } {
-# puts "$c is not unique"
- }
- }
- set COLORS($c) [list $r $g $b]
-}
-
-set COLORS() [list svg rgb]
-
-set f [open inkpot_lib_svg.dat w]
-puts $f [array get COLORS]
-close $f
+++ /dev/null
-#!/usr/bin/tclsh
-
-set fn $argv
-
-set f [open $fn r]
-set d [read $f [file size $fn]]
-close $f
-
-foreach {. c r g b} [regexp -all -inline -- {\{ \"([^\"]+)\",\s+(\d+),\s+(\d+),\s+(\d+)\s+\},} $d] {
- regsub -all -- { } $c {} c
- set c [string tolower $c]
- if {[info exists COLORS($c)]} {
- foreach {rr gg bb} $COLORS($c) {break}
- if {$r != $rr || $g != $gg || $b != $bb} {
- puts "$c is not unique and rgb doesn't match: $r $g $b != $rr $gg $bb"
- } {
-# puts "$c is not unique"
- }
- }
- set COLORS($c) [list $r $g $b]
-}
-
-set COLORS() [list tk rgb]
-
-set f [open inkpot_lib_tk.dat w]
-puts $f [array get COLORS]
-close $f
+++ /dev/null
-#!/usr/bin/tclsh
-
-set fn $argv
-
-set f [open $fn r]
-set d [read $f [file size $fn]]
-close $f
-
-foreach {rec} [split $d \n] {
- if {[string length $rec] == 0} {continue}
- if {[string first "!" $rec] == 0} {continue}
- set rc [regexp -inline -- {\s*(\d+)\s+(\d+)\s+(\d+)\s+(.*)} $rec]
- foreach { . r g b c} $rc {break}
- regsub -all -- { } $c {} c
- set c [string tolower $c]
- if {[info exists COLORS($c)]} {
- foreach {rr gg bb} $COLORS($c) {break}
- if {$r != $rr || $g != $gg || $b != $bb} {
- puts "$c is not unique and rgb doesn't match: $r $g $b != $rr $gg $bb"
- } {
-# puts "$c is not unique"
- }
- }
- set COLORS($c) [list $r $g $b]
-}
-
-set COLORS() [list x11 rgb]
-
-set f [open inkpot_lib_x11.dat w]
-puts $f [array get COLORS]
-close $f
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
-
-#include <inkpot/inkpot.h>
-
-#include <inkpot/inkpot_lib_define.h>
-#include <inkpot/inkpot_value.h>
-#include <inkpot/inkpot_scheme.h>
-#include <inkpot/inkpot_xlate.h>
-#include <inkpot/inkpot_lib_scheme.h>
-#include <inkpot/inkpot_lib_string.h>
-
-static size_t inkpot_writer (void *closure, const char *data, size_t length)
-{
- return fwrite(data, sizeof(char), length, (FILE *)closure);
-}
-
-static inkpot_write_disc_t inkpot_default_writer = { inkpot_writer };
-
-inkpot_t *inkpot_init ( void )
-{
- inkpot_t *inkpot = malloc(sizeof(inkpot_t));
- if (inkpot) {
- memset(inkpot, 0, sizeof(inkpot_t));
- inkpot->write_disc = inkpot_default_writer;
- inkpot->write_closure = stdout;
- }
- return inkpot;
-}
-
-void inkpot_destroy ( inkpot_t *inkpot )
-{
- free(inkpot->canon);
- free(inkpot);
-}
-
-inkpot_status_t inkpot_write_disc ( inkpot_t *inkpot, inkpot_write_disc_t disc )
-{
- inkpot->write_disc = disc;
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-inkpot_status_t inkpot_write_closure ( inkpot_t *inkpot, void *closure )
-{
- inkpot->write_closure = closure;
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-/* FIXME - this needs to work with UTF-8 strings */
-static int string_cmpf (const char *k, const char *b)
-{
- for ( ; *k && *b; k++, b++) {
- if (*k > *b) return 1;
- if (*k < *b) return -1;
- }
- if (*k) return 1; /* if the next char in key is not '\0', then key is longer */
- if (*b) return -1; /* if the next char in base is not '\0', then base is longer */
- return 0;
-}
-
-static int inkpot_scheme_cmpf ( const void *key, const void *base)
-{
- const char *k = (const char*)key;
- const char *b = &TAB_STRINGS[((inkpot_scheme_t *)base)->string_idx];
-
- return string_cmpf(k, b);
-}
-
-static inkpot_scheme_t *inkpot_find_scheme ( const char *scheme )
-{
- if (scheme == NULL)
- return NULL;
-
- return (inkpot_scheme_t *) bsearch(
- (void*)scheme, (void*)TAB_SCHEMES,
- SZT_SCHEMES, sizeof(inkpot_scheme_t),
- inkpot_scheme_cmpf);
-}
-
-static int inkpot_icolor_cmpf ( const void *key, const void *base)
-{
- const char *k = (const char*)key;
- const char *b = &TAB_STRINGS[((inkpot_icolor_t *)base)->string_idx];
-
- return string_cmpf(k, b);
-}
-
-static inkpot_icolor_t *inkpot_find_icolor ( const char *icolor)
-{
- if (icolor == NULL)
- return NULL;
-
- return (inkpot_icolor_t *) bsearch(
- (void*)icolor, (void*)TAB_ICOLORS,
- SZT_ICOLORS, sizeof(inkpot_icolor_t),
- inkpot_icolor_cmpf);
-}
-
-static inkpot_status_t inkpot_scheme ( inkpot_t *inkpot, const char *scheme )
-{
- inkpot_scheme_t *inkpot_scheme;
-
- inkpot_scheme = inkpot_find_scheme(scheme);
- if (inkpot_scheme == NULL)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
-
- inkpot->scheme_bits |= 1 << (inkpot_scheme - TAB_SCHEMES);
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-inkpot_status_t inkpot_schemes_put ( inkpot_t *inkpot, const char *schemes )
-{
- inkpot_status_t rc = INKPOT_SUCCESS;
- const char *q;
- char *p, *s, c;
- int len;
-
- if (schemes == NULL)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
-
- inkpot->scheme_bits = 0; /* clear old input schemes */
- inkpot->active_schemes = 0;
- inkpot->out_name = NULL;
-
- len = strlen(schemes);
- if (len >= inkpot->canon_alloc) {
- inkpot->canon_alloc = len + 1 + 10;
- inkpot->canon = realloc(inkpot->canon, inkpot->canon_alloc);
- if (! inkpot->canon)
- return ((inkpot->status = INKPOT_MALLOC_FAIL));
- }
-
- q = schemes;
- p = inkpot->canon;
- for (c = *q; c;) {
- s = p;
- while ((c = *q++) && c != ' ' && c != '\t' && c != ',') {*p++ = c;}
- *p++ = '\0';
- if (*s) {
- rc = inkpot_scheme(inkpot, s);
- if (rc != INKPOT_SUCCESS)
- return rc;
- }
- }
- return rc;
-}
-
-inkpot_status_t inkpot_scheme_get ( inkpot_t *inkpot, const char *scheme )
-{
- inkpot_scheme_t *inkpot_scheme;
- IDX_SCHEMES_t idx;
-
- inkpot_scheme = inkpot_find_scheme(scheme);
- if (inkpot_scheme == NULL)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
-
- idx = inkpot_scheme - TAB_SCHEMES;
- inkpot->out_scheme_bit = 1 << idx;
-
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-
-inkpot_status_t inkpot_icolor_get ( inkpot_t *inkpot, const char *icolor )
-{
- inkpot_icolor_t *inkpot_icolor;
- inkpot_icolor = inkpot_find_icolor(icolor); /* FIXME */
- if (! inkpot_icolor)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
-
- if (inkpot->active_out_schemes == 0
- || (inkpot->out_scheme_list[0] != (inkpot_icolor - TAB_ICOLORS))) {
- inkpot->out_scheme_list[0] = (inkpot_icolor - TAB_ICOLORS);
- inkpot->out_scheme_bit = 0;
- inkpot->out_name = NULL; /* clear cached name */
- }
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-static int inkpot_name_cmpf ( const void *key, const void *base)
-{
- const char *k = (const char*)key;
- const char *b = &TAB_STRINGS[((inkpot_name_t *)base)->string_idx];
-
- return string_cmpf(k, b);
-}
-
-static inkpot_status_t inkpot_put_value_idx( inkpot_t *inkpot, IDX_VALUES_t value_idx)
-{
- if (inkpot->value.index != value_idx) {
- inkpot->value.index = value_idx;
- inkpot->out_name = NULL; /* value changed so invalidate out_name */
- }
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-static inkpot_status_t inkpot_cache_get( inkpot_t *inkpot )
-{
- IDX_MRU_CACHE_t i;
- IDX_NAMES_t cache_name_idx;
- const char *cache_color;
- char *color;
-
- /* The cached value is valid if:
- * The name schemes are unchanged
- * The color requested matches the cached color.
- *
- * Its not sufficient for the scheme of the cached value to still be present in the current
- * schemes since the correct resolution may have the same name but different value.
- */
- color = inkpot->canon;
- for (i = 0; i < SZT_MRU_CACHE; i++) {
- if (inkpot->cache[i].scheme_bits != inkpot->scheme_bits)
- continue;
-
- cache_name_idx = inkpot->cache[i].name_idx;
- cache_color = &TAB_STRINGS[TAB_NAMES[cache_name_idx].string_idx];
- if (strcmp(cache_color, color) != 0)
- continue;
-
- /* found */
- if (i) { /* if it is not already MRU then reorder to make it so */
- inkpot->cache[i-1].next_recently_used_idx = inkpot->cache[i].next_recently_used_idx;
- inkpot->cache[i].next_recently_used_idx = inkpot->most_recently_used_idx;
- inkpot->most_recently_used_idx = i;
- }
- return inkpot_put_value_idx(inkpot, TAB_NAMES[cache_name_idx].value_idx);
- }
- return ((inkpot->status = INKPOT_COLOR_UNKNOWN));
-}
-
-static inkpot_status_t inkpot_cache_put ( inkpot_t *inkpot, IDX_NAMES_t name_idx )
-{
- IDX_MRU_CACHE_t i;
-
- for (i = 0; i < SZT_MRU_CACHE; i++) {
- if (inkpot->cache[i].next_recently_used_idx == SZT_MRU_CACHE) {
- inkpot->cache[i].next_recently_used_idx = inkpot->most_recently_used_idx;
- inkpot->most_recently_used_idx = i;
-
- inkpot->cache[i].scheme_bits = inkpot->scheme_bits;
- inkpot->cache[i].name_idx = name_idx;
- }
- else
- inkpot->cache[i].next_recently_used_idx += 1;
- }
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-static inkpot_status_t inkpot_put_name ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- char *color;
- inkpot_name_t *name;
- IDX_ALTS_t i;
-
- if (inkpot == NULL || ! inkpot->scheme_bits)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
- if ((color = inkpot->canon) == NULL)
- return ((inkpot->status = INKPOT_COLOR_UNKNOWN));
-
- rc = inkpot_cache_get(inkpot);
- if (rc == INKPOT_SUCCESS)
- return rc;
-
- name = (inkpot_name_t *) bsearch(
- (void*)color, (void*)TAB_NAMES,
- SZT_NAMES, sizeof(inkpot_name_t),
- inkpot_name_cmpf);
- if (name == NULL)
- return ((inkpot->status = INKPOT_COLOR_UNKNOWN));
-
- if (name->scheme_bits) {
- if (inkpot->scheme_bits & name->scheme_bits) {
- rc = inkpot_put_value_idx(inkpot, name->value_idx);
- assert(rc == INKPOT_SUCCESS);
- return inkpot_cache_put(inkpot, (name - TAB_NAMES) );
- }
- }
- else {
- for (i = name->value_idx; i < SZT_ALTS; i++) {
- if (inkpot->scheme_bits & TAB_ALTS[i].scheme_bits) {
- rc = inkpot_put_value_idx(inkpot, TAB_ALTS[i].value_idx);
- assert(rc == INKPOT_SUCCESS);
- return inkpot_cache_put(inkpot, (name - TAB_NAMES) );
- }
- if (! TAB_ALTS[i].string_idx)
- break;
- }
- }
- return ((inkpot->status = INKPOT_COLOR_UNKNOWN));
-}
-
-static inkpot_status_t inkpot_put_index ( inkpot_t *inkpot, int index )
-{
- IDX_ICOLORS_t j;
- IDX_INDEXES_t first, last;
- IDX_VALUES_t value_idx;
-
- if (!inkpot->active_schemes)
- return ((inkpot->status = INKPOT_SCHEME_UNKNOWN));
-
- j = inkpot->scheme_list[0];
- first = TAB_ICOLORS[j].range_idx;
- if (++j >= SZT_ICOLORS)
- last = SZT_INDEXES;
- else
- last = TAB_ICOLORS[j].range_idx;
- last = last-1-first;
-
- /* clip user-provided index to fit available range */
- index = (index < 0) ? 0 : index;
- index = (index > last) ? last : index;
- index += first;
-
- assert(index < SZT_INDEXES);
- value_idx = TAB_INDEXES[index];
- if (value_idx >= SZT_VALUES)
- assert(value_idx < SZT_VALUES + SZT_NONAME_VALUES);
-
- return inkpot_put_value_idx(inkpot, value_idx);
-}
-
-inkpot_status_t inkpot_put_rgba ( inkpot_t *inkpot, double rgba[4] )
-{
- inkpot_status_t rc;
- inkpot_value_t value;
- double v;
- int i;
-
- for (i = 0; i < 4; i++) {
- v = rgba[i];
- v = (v < 0.0) ? 0.0 : v;
- v = (v > 1.0) ? 1.0 : v;
- value.value[i] = (unsigned short)(v * 65535);
- }
- value.vtype = VTYPE_rgba;
-
- rc = inkpot_value_set ( &inkpot->values, &value );
- if (rc == INKPOT_SUCCESS)
- inkpot->value = value;
- return (inkpot->status = rc);
-}
-
-inkpot_status_t inkpot_put_hsva ( inkpot_t *inkpot, double hsva[4] )
-{
- double rgba[4];
-
- hsva2rgba( hsva, rgba );
-
- return inkpot_put_rgba ( inkpot, rgba );
-}
-
-inkpot_status_t inkpot_put ( inkpot_t *inkpot, const char *color )
-{
- inkpot_status_t rc = INKPOT_COLOR_UNKNOWN;
- IDX_ICOLORS_t j;
- IDX_INDEXES_t first, last;
- IDX_VALUES_t value_idx;
- char *q, *s;
- const char *p;
- int i, c, len, index;
- unsigned int r, g, b, a;
- inkpot_value_t value;
- double hsva[4];
-
- if (!color)
- return ((inkpot->status = INKPOT_COLOR_UNKNOWN));
-
- len = strlen(color);
- if (len >= inkpot->canon_alloc) {
- inkpot->canon_alloc = len + 1 + 20;
- inkpot->canon = realloc(inkpot->canon, inkpot->canon_alloc);
- if (! inkpot->canon)
- return ((inkpot->status = INKPOT_MALLOC_FAIL));
- }
-
- /* canonicalize input string */
- for (p = color, q = inkpot->canon;
- (c = *p) && ( c == ' ' || c == '\t' );
- p++) { }; /* remove leading ws */
-
- /* change ',' to ' ' */
- while ((c = *p++)) {
- if (c == ',') c = ' ';
- *q++ = c;
- }
- *q = '\0';
-
- if (*inkpot->canon == '#') {
- a = 65535;
- if ((len = sscanf(inkpot->canon, "#%4x%4x%4x%4x", &r, &g, &b, &a)) >= 3) {
- value.value[0] = r;
- value.value[1] = g;
- value.value[2] = b;
- value.value[3] = a;
- }
- else if (len < 3) {
- a = 255;
- if ((len = sscanf(inkpot->canon, "#%2x%2x%2x%2x", &r, &g, &b, &a)) >= 3) {
- value.value[0] = r | r << 8;
- value.value[1] = g | r << 8;
- value.value[2] = b | r << 8;
- value.value[3] = a | r << 8;
- }
- }
- if (len >= 3) {
- value.vtype = VTYPE_rgba;
- rc = inkpot_value_set ( &inkpot->values, &value );
- if (rc == INKPOT_SUCCESS)
- inkpot->value = value;
- inkpot->status = rc;
- }
- }
- else if (((c = *inkpot->canon) == '.') || isdigit(c)) {
- hsva[3] = 1.0;
- if (sscanf(inkpot->canon, "%lf%lf%lf%lf", &hsva[0], &hsva[1], &hsva[2], &hsva[3]) >= 3)
- rc = inkpot_put_hsva(inkpot, hsva); /* FIXME */
- else
- if (sscanf(inkpot->canon, "%d", &index) == 1) /* simple indexes */
- rc = inkpot_put_index(inkpot, index);
- }
- if (rc != INKPOT_SUCCESS && inkpot->active_schemes) { /* pseudo names from scheme_name+index */
- len = strlen(inkpot->canon);
- s = inkpot->canon;
- index = 0;
- i = 1;
- for (q = s + len -1; q >= s; q--) {
- c = *q;
- if (! isdigit(c)) break;
- index += (c - '0') * i;
- i *= 10;
- }
- *++q = '\0';
- for (i=0; i < inkpot->active_schemes; i++) {
- j = inkpot->scheme_list[i];
- p = &TAB_STRINGS[TAB_ICOLORS[j].string_idx];
- if (strcmp(p, s) != 0)
- continue;
- /* FIXME - deal with subschemes */
- first = TAB_ICOLORS[j].range_idx;
- if (++j >= SZT_ICOLORS)
- last = SZT_INDEXES;
- else
- last = TAB_ICOLORS[j].range_idx;
- last = last-1-first;
-
- /* clip user-provided index to fit available range */
- index = (index < 0) ? 0 : index;
- index = (index > last) ? last : index;
- index += first;
-
- assert(index < SZT_INDEXES);
- value_idx = TAB_INDEXES[index];
- if (value_idx >= SZT_VALUES)
- assert(value_idx < SZT_VALUES + SZT_NONAME_VALUES);
-
- rc = inkpot_put_value_idx(inkpot, value_idx);
- break;
- }
- *q = c; /* repair the damage to inkpot->canon */
- }
-
- if (rc != INKPOT_SUCCESS) {
- /* remove embedded ws and convert to lower case*/
- for (p = q = inkpot->canon; (c = *p) && ! ( c == ' ' || c == '\t' ); p++) { *q++ = tolower(c); };
- *q = '\0';
- rc = inkpot_put_name(inkpot);
- }
-
- return rc;
-}
-
-inkpot_status_t inkpot_get ( inkpot_t *inkpot, const char **color )
-{
- inkpot_name_t *out_name;
- IDX_NAMES_t t;
- IDX_ALTS_t i;
- IDX_VALUES_t value_idx;
- int maybe;
-
- /* FIXME - why isn't this checking the current value then the 4 level cache? */
- out_name = inkpot->out_name;
- if (out_name) { /* if we have a cached name */
- *color = &TAB_STRINGS[out_name->string_idx];
- return ((inkpot->status = INKPOT_SUCCESS));
- }
-
-
- /* FIXME - most of this should go */
-
- if (inkpot->out_scheme_bit) {
- value_idx = inkpot->value.index;
- if (value_idx < SZT_VALUES) {
- for (t = TAB_VALUE_TO[value_idx]; t < SZT_TO_NAMES; t++) {
- out_name = &TAB_NAMES[TAB_TO_NAMES[t]];
- if (out_name->scheme_bits) {
- if (out_name->value_idx != value_idx)
- break;
- if (out_name->scheme_bits & inkpot->out_scheme_bit) {
- inkpot->out_name = out_name;
- *color = &TAB_STRINGS[out_name->string_idx];
- return ((inkpot->status = INKPOT_SUCCESS));
- }
- }
- else {
- maybe = 0;
- for (i = out_name->value_idx; i < SZT_ALTS; i++) {
- if ( TAB_ALTS[i].value_idx == value_idx) {
- maybe++;
- if (inkpot->out_scheme_bit & TAB_ALTS[i].scheme_bits) {
- inkpot->out_name = out_name;
- *color = &TAB_STRINGS[out_name->string_idx];
- return ((inkpot->status = INKPOT_SUCCESS));
- }
- }
- if (! TAB_ALTS[i].string_idx)
- break;
- }
- if (!maybe)
- break;
- }
- }
- *color = NULL;
- return ((inkpot->status = INKPOT_COLOR_NONAME));
- }
- value_idx -= SZT_VALUES;
- if (value_idx < SZT_NONAME_VALUES) {
- *color = NULL;
- return ((inkpot->status = INKPOT_COLOR_NONAME));
- }
- if (value_idx == SZT_NONAME_VALUES) {
- *color = NULL;
- return ((inkpot->status = INKPOT_NOPALETTE));
- }
- assert(0); /* support for dynamic values to go here */
- }
-
- if (inkpot->active_out_schemes) {
- /* FIXME - indexed output scheme - eg. palette */
- *color = NULL;
- return ((inkpot->status = INKPOT_COLOR_NONAME));
- }
-
- *color = NULL;
- return ((inkpot->status = INKPOT_COLOR_NONAME));
-}
-
-inkpot_status_t inkpot_get_rgba_i ( inkpot_t *inkpot, unsigned short rgba[4] )
-{
- inkpot_status_t rc;
- inkpot_value_t value;
- int i;
-
- value = inkpot->value;
- rc = inkpot->status = inkpot_value_get( &inkpot->values, &value );
- if (rc == INKPOT_SUCCESS) {
- for (i = 0; i < 4; i++) {
- rgba[i] = value.value[i];
- }
- }
- return rc;
-}
-
-inkpot_status_t inkpot_get_rgba ( inkpot_t *inkpot, double rgba[4] )
-{
- inkpot_status_t rc;
- inkpot_value_t value;
- int i;
-
- value = inkpot->value;
- rc = inkpot->status = inkpot_value_get( &inkpot->values, &value );
- if (rc == INKPOT_SUCCESS) {
- for (i = 0; i < 4; i++) {
- rgba[i] = value.value[i] / (double)65535;
- }
- }
- return rc;
-}
-
-inkpot_status_t inkpot_get_hsva ( inkpot_t *inkpot, double hsva[4] )
-{
- inkpot_status_t rc;
- double rgba[4];
-
- rc = inkpot_get_rgba(inkpot, rgba);
- if (rc == INKPOT_SUCCESS)
- rgba2hsva( rgba, hsva );
-
- return rc;
-}
-
-inkpot_status_t inkpot_get_cmyk ( inkpot_t *inkpot, double cmyk[4] )
-{
- inkpot_status_t rc;
- double rgba[4];
-
- rc = inkpot_get_rgba(inkpot, rgba);
- if (rc == INKPOT_SUCCESS)
- rgba2cmyk( rgba, cmyk );
-
- return rc;
-}
-
-static void inkpot_puts(inkpot_t *inkpot, const char *s)
-{
- inkpot->write_disc.writer(inkpot->write_closure, s, strlen(s));
-}
-
-inkpot_status_t inkpot_write ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- const char *color;
-
- rc = inkpot_get(inkpot, &color);
- if (rc == INKPOT_SUCCESS)
- inkpot->write_disc.writer(inkpot->write_closure, color, strlen(color));
- return rc;
-}
-
-inkpot_status_t inkpot_write_rgba16 ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- unsigned short rgba[4];
- char buf[17];
- int len;
-
- rc = inkpot_get_rgba_i ( inkpot, rgba );
- if (rc == INKPOT_SUCCESS) {
- len = snprintf(buf, sizeof(buf), "%04x%04x%04x%04x", rgba[0], rgba[1],
- rgba[2], rgba[3]);
- assert(len==16);
- inkpot->write_disc.writer(inkpot->write_closure, buf, len);
- }
- return rc;
-}
-
-inkpot_status_t inkpot_write_rgb16 ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- unsigned short rgba[4];
- char buf[13];
- int len;
-
- rc = inkpot_get_rgba_i ( inkpot, rgba );
- if (rc == INKPOT_SUCCESS) {
- len = snprintf(buf, sizeof(buf), "%04x%04x%04x", rgba[0], rgba[1],
- rgba[2]);
- assert(len==12);
- inkpot->write_disc.writer(inkpot->write_closure, buf, len);
- }
- return rc;
-}
-
-inkpot_status_t inkpot_write_rgba8 ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- unsigned short rgba[4];
- char buf[9];
- int len;
-
- rc = inkpot_get_rgba_i ( inkpot, rgba );
- if (rc == INKPOT_SUCCESS) {
- len = snprintf(buf, sizeof(buf), "%02x%02x%02x%02x", rgba[0]>>8,
- rgba[1]>>8, rgba[2]>>8, rgba[3]>>8);
- assert(len==8);
- inkpot->write_disc.writer(inkpot->write_closure, buf, len);
- }
- return rc;
-}
-
-inkpot_status_t inkpot_write_rgb8 ( inkpot_t *inkpot )
-{
- inkpot_status_t rc;
- unsigned short rgba[4];
- char buf[7];
- int len;
-
- rc = inkpot_get_rgba_i ( inkpot, rgba );
- if (rc == INKPOT_SUCCESS) {
- len = snprintf(buf, "%02x%02x%02x", rgba[0]>>8, rgba[1]>>8, rgba[2]>>8);
- assert(len==6);
- inkpot->write_disc.writer(inkpot->write_closure, buf, len);
- }
- return rc;
-}
-
-inkpot_status_t inkpot_debug_schemes( inkpot_t *inkpot )
-{
- IDX_SCHEMES_t i;
- IDX_ICOLORS_t j;
- int found;
-
- inkpot_puts(inkpot, "schemes:\n");
- for (i = 0; i < SZT_SCHEMES; i++) {
- found = 0;
- if ((1<<i) & inkpot->scheme_bits) {
- inkpot_puts(inkpot, " ");
- inkpot_puts(inkpot, &TAB_STRINGS[TAB_SCHEMES[i].string_idx]);
- inkpot_puts(inkpot, "(in)");
- found++;
- }
- if ((1<<i) & inkpot->out_scheme_bit) {
- if (! found) {
- inkpot_puts(inkpot, " ");
- inkpot_puts(inkpot, &TAB_STRINGS[TAB_SCHEMES[i].string_idx]);
- found++;
- }
- inkpot_puts(inkpot, "(out)");
- }
- if (found)
- inkpot_puts(inkpot, "\n");
- }
- for (j = 0; j < inkpot->active_schemes; j++) {
- inkpot_puts(inkpot, " ");
- inkpot_puts(inkpot, &TAB_STRINGS[TAB_ICOLORS[inkpot->scheme_list[j]].string_idx]);
- inkpot_puts(inkpot, "#(in)");
- }
- for (j = 0; j < inkpot->active_out_schemes; j++) {
- inkpot_puts(inkpot, " ");
- inkpot_puts(inkpot, &TAB_STRINGS[TAB_ICOLORS[inkpot->out_scheme_list[j]].string_idx]);
- inkpot_puts(inkpot, "#(out)");
- }
- inkpot_puts(inkpot, "\n");
-
- return ((inkpot->status = INKPOT_SUCCESS));
-}
-
-inkpot_status_t inkpot_debug_error ( inkpot_t *inkpot )
-{
- const char *m = "\nINKPOT_FAIL\n";
-
- assert(inkpot);
- switch (inkpot->status) {
- case INKPOT_SUCCESS:
- m = "\nINKPOT_SUCCESS\n"; break;
- case INKPOT_MALLOC_FAIL:
- m = "\nINKPOT_MALLOC_FAIL\n"; break;
- case INKPOT_COLOR_UNKNOWN:
- m = "\nINKPOT_COLOR_UNKNOWN\n"; break;
- case INKPOT_COLOR_NONAME:
- m = "\nINKPOT_COLOR_NONAME\n"; break;
- case INKPOT_SCHEME_UNKNOWN:
- m = "\nINKPOT_SCHEME_UNKNOWN\n"; break;
- case INKPOT_NOPALETTE:
- m = "\nINKPOT_PALETTE\n"; break;
- case INKPOT_NOSUCH_INDEX:
- m = "\nINKPOT_NOSUCH_INDEX\n"; break;
- }
- inkpot->write_disc.writer(inkpot->write_closure, m, strlen(m));
-
- return ((inkpot->status = INKPOT_SUCCESS));
-};
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#ifndef INKPOT_STRUCTS_H
-#define INKPOT_STRUCTS_H
-
-typedef unsigned char IDX_MRU_CACHE_t;
-#define SZT_MRU_CACHE 4
-
-typedef struct inkpot_scheme_s {
- IDX_STRINGS_t
- string_idx; /* The scheme name in TAB_STRINGS. (e.g. "x11") */
-} inkpot_scheme_t;
-
-typedef struct inkpot_range_s {
- IDX_INDEXES_t
- size; /* 1,0 for alts, all but last alt=1, last alt is 0,
- * n>=2 for ranges
- */
- MSK_SCHEMES_t
- scheme_bits; /* A bit for each inkpot_scheme_name_t
- * that includes this inkpot_name_t
- */
- IDX_INDEXES_t
- first_value_idx; /* index of first in range, or first alternative */
-} inkpot_range_t;
-
-typedef struct inkpot_name_s { /* Color_name used by one or more
- * inkpot_scheme_name_t. Each instance has
- * just one color string and one index_value_t
- * but another instance may use the same
- * color string for a different inkpot_value_t.
- * inkpot_names_t are alpha sorted in
- * TAB_NAMES[] */
-
- IDX_STRINGS_t
- string_idx; /* The color name in TAB_STRINGS.
- * (e.g. "green") */
-
- MSK_SCHEMES_t
- scheme_bits; /* A bit for each inkpot_scheme_name_t
- * that includes this inkpot_name_t.
- if = 0, then name has multiple values */
-
- IDX_VALUES_t
- value_idx; /* An index into TAB_VALUE for this
- * inkpot_name_t, or, if scheme_bits == 0
- * an index into TAB_RANGES */
-} inkpot_name_t;
-
-typedef struct inkpot_cache_element_s {
- IDX_MRU_CACHE_t
- next_recently_used_idx;
- MSK_SCHEMES_t
- scheme_bits;
- IDX_NAMES_t
- name_idx;
-} inkpot_cache_element_t;
-
-/* typedef struct inkpot_s inkpot_t; */ /* public opaque type in inkpot.h */
-
-struct inkpot_s { /* The Ink Pot */
- MSK_SCHEMES_t
- scheme_bits, /* One bit per inkpot_scheme_name_t */
- out_scheme_bit; /* One scheme only for output. */
-
- IDX_INDEXES_t
- index, /* The index for the current value in active_schemes_index */
- out_index; /* The index for the current value in active_out_schemes_index */
-
- int
- active_schemes, /* The number of active index schemes. */
- active_out_schemes; /* The number of active index schemes. */
-
- inkpot_name_t
- *out_name; /* The current output name, or NULL. */
-
- char *canon; /* malloc'ed, reused storage for canonicalizing color request strings */
- int canon_alloc;
-
- inkpot_values_t values; /* The values store */
- inkpot_value_t value; /* The current value of the inkpot */
-
- inkpot_cache_element_t
- cache[SZT_MRU_CACHE];/* MRU chache of successful color lookups */
- IDX_MRU_CACHE_t
- most_recently_used_idx;
-
- inkpot_write_disc_t
- write_disc; /* User changeable function for writing output
- * Defaults to an internal function that writes
- * to FILE* streams */
- void
- *write_closure; /* A parameter to pass to the writer function.
- * Defaults to (FILE*)stdout */
-
- inkpot_status_t
- status; /* The status after the last operation */
-};
-
-#endif /* INKPOT_STRUCTS_H */
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-
-#include <inkpot/inkpot.h>
-#include <inkpot/inkpot_lib_define.h>
-#include <inkpot/inkpot_value.h>
-#include <inkpot/inkpot_lib_value.h>
-
-inkpot_status_t inkpot_value_set ( inkpot_values_t *values, inkpot_value_t *value )
-{
- value->vtype = VTYPE_rgba; /* FIXME */
- value->index = SZT_VALUES + SZT_NONAME_VALUES;
-
- return INKPOT_SUCCESS;
-}
-
-inkpot_status_t inkpot_value_get ( inkpot_values_t *values, inkpot_value_t *value )
-{
- IDX_VALUES_24_t i;
- unsigned short v;
-
- /* FIXME - this routine must check for 8 bit values and properly scale to 16 for the api */
-
- if (value->index < SZT_VALUES) {
- i = 3 * value->index;
-
- v = TAB_VALUES_24[i++]; value->value[0] = v | v << 8;
- v = TAB_VALUES_24[i++]; value->value[1] = v | v << 8;
- v = TAB_VALUES_24[i]; value->value[2] = v | v << 8;
- value->value[3] = 0xffff;
-
- value->vtype = VTYPE_rgba; /* FIXME */
- }
- else if (value->index - SZT_VALUES < SZT_NONAME_VALUES) {
- i = 3 * value->index - SZT_VALUES;
-
- v = TAB_NONAME_VALUES_24[i++]; value->value[0] = v | v << 8;
- v = TAB_NONAME_VALUES_24[i++]; value->value[1] = v | v << 8;
- v = TAB_NONAME_VALUES_24[i]; value->value[2] = v | v << 8;
- value->value[3] = 0xffff;
-
- value->vtype = VTYPE_rgba; /* FIXME */
- }
- else if (value->index == SZT_VALUES + SZT_NONAME_VALUES) {
- value->vtype = VTYPE_rgba; /* FIXME */
- return INKPOT_NOPALETTE;
- }
- else
- return INKPOT_NOSUCH_INDEX;
-
- return INKPOT_SUCCESS;
-}
-
-inkpot_status_t inkpot_value_get_first ( inkpot_values_t *values, inkpot_value_t *value )
-{
- value->index = 0;
- return inkpot_value_get ( values, value );
-}
-
-inkpot_status_t inkpot_value_get_next ( inkpot_values_t *values, inkpot_value_t *value )
-{
- value->index++;
- return inkpot_value_get ( values, value );
-}
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#ifndef INKPOT_VALUE_H
-#define INKPOT_VALUE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef int BIT_VTYPE_t;
-
-typedef enum {
- VTYPE_rgba = 0,
- VTYPE_hsva,
- VTYPE_cmyk,
- SZT_VTYPE
-} inkpot_value_vtype_t;
-
-typedef struct inkpot_values_s {
-#if 0
-/* FIXME - not sure about all this ... */
- uint64_t * named[SZT_VTYPE];
- uint64_t * unnamed[SZT_VTYPE];
- uint64_t * palette[SZT_VTYPE];
- size_t named_64_size[SZT_VTYPE];
- size_t named_48_size[SZT_VTYPE];
- size_t named_32_size[SZT_VTYPE];
- size_t named_24_size[SZT_VTYPE];
- size_t unnamed_64_size[SZT_VTYPE];
- size_t unnamed_48_size[SZT_VTYPE];
- size_t unnamed_32_size[SZT_VTYPE];
- size_t unnamed_24_size[SZT_VTYPE];
- size_t palette_64_size[SZT_VTYPE];
- size_t palette_48_size[SZT_VTYPE];
- size_t palette_32_size[SZT_VTYPE];
- size_t palette_24_size[SZT_VTYPE];
- size_t palette_alloc[SZT_VTYPE];
-#endif
-} inkpot_values_t;
-
-typedef struct inkpot_value_s {
- IDX_VALUES_t index; /* write by set, read by get, write by first, read/write by next */
- BIT_VTYPE_t vtype; /* read by set, write by get, read by first, read by next */
- unsigned short value[4]; /* read by set, write by get, write by first, write by next */
-} inkpot_value_t;
-
-extern inkpot_status_t inkpot_value_set ( inkpot_values_t *values, inkpot_value_t *value );
-extern inkpot_status_t inkpot_value_get ( inkpot_values_t *values, inkpot_value_t *value );
-
-extern inkpot_status_t inkpot_value_get_first ( inkpot_values_t *values, inkpot_value_t *value );
-extern inkpot_status_t inkpot_value_get_next ( inkpot_values_t *values, inkpot_value_t *value );
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* INKPOT_VALUE_H */
-
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#include <inkpot/inkpot_xlate.h>
-
-void hsva2rgba(double hsva[4], double rgba[4])
-{
- int i;
- double f, p, q, t, h, s, v;
-
- rgba[3] = hsva[3]; /* copy alpha */
-
- h = (hsva[0] < 0.0) ? 0.0 : hsva[0];
- h = (h > 1.0) ? 1.0 : h;
- s = (hsva[1] < 0.0) ? 0.0 : hsva[1];
- s = (s > 1.0) ? 1.0 : s;
- v = (hsva[2] < 0.0) ? 0.0 : hsva[2];
- v = (v > 1.0) ? 1.0 : v;
-
- if (s <= 0.0) { /* achromatic */
- rgba[0] = v;
- rgba[1] = v;
- rgba[2] = v;
- } else {
- if (h >= 1.0)
- h = 0.0;
- h = 6.0 * h;
- i = (int) h;
- f = h - (double) i;
- p = v * (1 - s);
- q = v * (1 - (s * f));
- t = v * (1 - (s * (1 - f)));
- switch (i) {
- case 0:
- rgba[0] = v;
- rgba[1] = t;
- rgba[2] = p;
- break;
- case 1:
- rgba[0] = q;
- rgba[1] = v;
- rgba[2] = p;
- break;
- case 2:
- rgba[0] = p;
- rgba[1] = v;
- rgba[2] = t;
- break;
- case 3:
- rgba[0] = p;
- rgba[1] = q;
- rgba[2] = v;
- break;
- case 4:
- rgba[0] = t;
- rgba[1] = p;
- rgba[2] = v;
- break;
- case 5:
- rgba[0] = v;
- rgba[1] = p;
- rgba[2] = q;
- break;
- }
- }
-}
-
-void rgba2hsva(double rgba[4], double hsva[4])
-{
-
- double rgbmin, rgbmax;
- double rc, bc, gc;
- double ht = 0.0, st = 0.0;
-
- hsva[3] = rgba[3]; /* copy alpha */
-
- rgbmin = (rgba[1] < rgba[2]) ? rgba[1] : rgba[2];
- rgbmin = (rgba[0] < rgbmin ) ? rgba[0] : rgbmin;
-
- rgbmax = (rgba[1] > rgba[2]) ? rgba[1] : rgba[2];
- rgbmax = (rgba[0] > rgbmax ) ? rgba[0] : rgbmax;
-
- if (rgbmax > 0.0)
- st = (rgbmax - rgbmin) / rgbmax;
-
- if (st > 0.0) {
- rc = (rgbmax - rgba[0]) / (rgbmax - rgbmin);
- gc = (rgbmax - rgba[1]) / (rgbmax - rgbmin);
- bc = (rgbmax - rgba[2]) / (rgbmax - rgbmin);
- if (rgba[0] == rgbmax)
- ht = bc - gc;
- else if (rgba[1] == rgbmax)
- ht = 2 + rc - bc;
- else if (rgba[2] == rgbmax)
- ht = 4 + gc - rc;
- ht = ht * 60.0;
- if (ht < 0.0)
- ht += 360.0;
- }
- hsva[0] = ht / 360.0;
- hsva[1] = st;
- hsva[2] = rgbmax;
-}
-
-void rgba2cmyk(double rgba[4], double cmyk[4])
-{
- double c, m, y, k;
-
- /* alpha is ignored */
-
- c = 1.0 - rgba[0];
- m = 1.0 - rgba[1];
- y = 1.0 - rgba[2];
- k = c < m ? c : m;
- k = y < k ? y : k;
- cmyk[4] = k;
- cmyk[3] = c - k;
- cmyk[2] = m - k;
- cmyk[0] = y - k;
-}
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#ifndef INKPOT_XLATE_H
-#define INKPOT_XLATE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern void hsva2rgba(double hsva[4], double rgba[4]);
-extern void rgba2hsva(double rgba[4], double hsva[4]);
-extern void rgba2cmyk(double rgba[4], double cmyk[4]);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* INKPOT_XLATE_H */
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@/@PACKAGE@
-plugins=@GVPLUGIN_VERSION@
-
-Name: libinkpot
-Description: Inkpot color management library
-Version: @VERSION@
-Libs: -L${libdir} -linkpot
-Cflags: -I${includedir}
-
+++ /dev/null
-CFLAGS = -Wall -g -O0
-
-LIBINKPOT = inkpot_scheme.o inkpot_xlate.o inkpot_value.o
-
-inkpot: inkpot.o $(LIBINKPOT)
-
-inkpot.o: inkpot.c inkpot.h
-
-inkpot_scheme.o: inkpot_scheme.c inkpot_scheme.h inkpot.h \
- inkpot_lib_define.h inkpot_lib_scheme.h \
- inkpot_value.h inkpot_xlate.h
-
-inkpot_xlate.o: inkpot_xlate.c inkpot_xlate.h inkpot.h
-
-inkpot_value.o: inkpot_value.c inkpot_value.h inkpot.h \
- inkpot_lib_define.h inkpot_value_table.h
-
-inkpot.c:
- ln -s ../inkpot.c
-inkpot.h:
- ln -s ../inkpot.h
-inkpot_scheme.c:
- ln -s ../inkpot_scheme.c
-inkpot_scheme.h:
- ln -s ../inkpot_scheme.h
-inkpot_value.c:
- ln -s ../inkpot_value.c
-inkpot_value.h:
- ln -s ../inkpot_value.h
-inkpot_xlate.c:
- ln -s ../inkpot_xlate.c
-inkpot_xlate.h:
- ln -s ../inkpot_xlate.h
-
-.PHONY: clean
-clean:
- rm -rf *.o inkpot inkpot.[ch] inkpot_scheme.[ch] \
- inkpot_value.[ch] inkpot_xlate.[ch]
-
-
-
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-#define SZT_COLOR_STRINGS 57
-#define SZL_COLOR_STRINGS 6
-typedef unsigned int IDX_COLOR_STRINGS;
-
-#define SZT_SCHEME_STRINGS 23
-#define SZL_SCHEME_STRINGS 6
-typedef unsigned int IDX_SCHEME_STRINGS;
-
-#define SZT_SCHEMES 3
-typedef unsigned short MSK_SCHEMES;
-typedef unsigned char IDX_SCHEMES;
-
-#define SZT_SCHEMES_INDEX 2
-typedef unsigned char IDX_SCHEMES_INDEX;
-
-#define SZT_NAMES 10
-typedef unsigned int IDX_NAMES;
-
-#define SZT_ALTS 2
-typedef unsigned char IDX_ALTS;
-
-#define SZT_IXVALUES 7
-typedef unsigned int IDX_IXVALUES;
-
-#define SZT_VALUE_TO 7
-typedef unsigned int IDX_VALUE_TO;
-
-#define SZT_TO_NAMES 11
-typedef unsigned int IDX_TO_NAMES;
-
-
-#define SZT_VALUES 7
-typedef unsigned char IDX_VALUES;
-
-#define SZT_VALUES_64 7
-typedef unsigned char IDX_VALUES_64;
-
-#define SZT_VALUES_24 21
-typedef unsigned char IDX_VALUES_24;
-
-#define SZT_NONAME_VALUES 4
-#define SZT_NONAME_VALUES_64 4
-#define SZT_NONAME_VALUES_24 12
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-const char TAB_COLOR_STRINGS[SZT_COLOR_STRINGS] = {
- "black\0"
- "bleu\0"
- "blue\0"
- "green\0"
- "jaune\0"
- "red\0"
- "rouge\0"
- "vert\0"
- "white\0"
- "yellow\0"
-};
-
-const char TAB_SCHEME_STRINGS[SZT_SCHEME_STRINGS] = {
- "french\0"
- "svg\0"
- "x11\0"
- "xxx\0"
- "yyy\0"
-};
-
-inkpot_scheme_name_t TAB_SCHEMES[SZT_SCHEMES] = { /* schemes of named colors */
- { 0, }, /* french */
- { 7, }, /* svg */
- { 11, }, /* x11 */
-};
-
-inkpot_scheme_index_t TAB_SCHEMES_INDEX[SZT_SCHEMES_INDEX] = { /* schemes of indexed colors */
- { 15, 0, }, /* xxx */
- { 19, 5, }, /* yyy */
-};
-
-inkpot_name_t TAB_NAMES[SZT_NAMES] = { /* Must be LC_ALL=C sort'ed by name with each alt */
- { 0, 0, 0x6, }, /* black */
- { 6, 1, 0x1, }, /* bleu */
- { 11, 1, 0x6, }, /* blue */
- { 16, 2, 0x6, }, /* green */
- { 22, 5, 0x1, }, /* jaune */
- { 28, 3, 0x6, }, /* red */
- { 32, 3, 0x1, }, /* rouge */
- { 38, 2, 0x1, }, /* vert */
- { 43, 6, 0x6, }, /* white */
- { 50, 0, 0, }, /* yellow (w. alts) */
-};
-
-inkpot_name_t TAB_ALTS[SZT_ALTS] = {
- { 1, 5, 0x4, }, /* yellow (x11) */
- { 0, 4, 0x2, }, /* yellow (svg) */
-};
-
-IDX_VALUE_TO TAB_VALUE_TO[SZT_VALUE_TO] = {
- 0, /* black */
- 1, /* bleu, blue */
- 3, /* green, vert */
- 5, /* red, rouge */
- 7, /* yellow (svg) */
- 8, /* yellow (x11), jaune */
- 10, /* white */
-};
-
-IDX_NAMES TAB_TO_NAMES[SZT_TO_NAMES] = {
- 0, /* black */
- 1, 2, /* bleu, blue */
- 3, 7, /* green, vert */
- 5, 6, /* red, rouge */
- 9, /* yellow(alt1) */
- 4, 9, /* jaune, yellow */
- 8, /* white */
-};
-
-IDX_VALUES TAB_IXVALUES[SZT_IXVALUES] = {
- 7, 8, 9, 10, 1, /* xxx */
- 0, 6, /* yyy */
-};
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-unsigned long TAB_VALUES_64[SZT_VALUES_64] = {
- 0x000000000000ffff, /* black */
- 0x00000000ffffffff, /* bleu, blue */
- 0x0000ffff0000ffff, /* green, vert */
- 0xffff00000000ffff, /* red, rouge */
- 0xffffcf000000ffff, /* yellow (svg) */
- 0xffffffff0000ffff, /* yellow (x11), jaune */
- 0xffffffffffffffff, /* white */
-};
-
-unsigned long TAB_NONAME_VALUES_64[SZT_NONAME_VALUES_64] = {
- 0x000000008000ffff,
- 0x00000000a400ffff,
- 0x00000000c800ffff,
- 0x00000000ea00ffff,
-};
-
-unsigned char TAB_VALUES_24[SZT_VALUES_24] = {
- 0, 0, 0, /* black */
- 0, 0, 255, /* bleu, blue */
- 0, 255, 0, /* green, vert */
- 255, 0, 0, /* red, rouge */
- 255, 192, 0, /* yellow (svg) */
- 255, 255, 255, /* yellow (x11), jaune */
- 255, 255, 255, /* white */
-};
-
-unsigned char TAB_NONAME_VALUES_24[SZT_NONAME_VALUES_24] = {
- 0, 0, 128,
- 0, 0, 160,
- 0, 0, 192,
- 0, 0, 224,
-};
librbtree_C_la_SOURCES = misc.c red_black_tree.c stack.c
-CLEANFILES = inkpot_lib_*.dat
-
EXTRA_DIST = LICENSE CHANGES makefile.txt test_red_black_tree.c \
rbtree.vcxproj*