Skip to content

Commit

Permalink
added paint server solid color
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred Moitzi committed Oct 26, 2016
1 parent 166c381 commit fd66659
Show file tree
Hide file tree
Showing 11 changed files with 1,470 additions and 1,328 deletions.
4 changes: 4 additions & 0 deletions NEWS.rst
Expand Up @@ -2,6 +2,10 @@
NEWS
====

Version 1.1.9 - 2016-10-26

* NEW: added solidColor paint server (only valid in the Tiny 1.2 profile)

Version 1.1.8 - 2016-05-31

* BUGFIX: None checks: 'if value:' -> 'if value is not None:'
Expand Down
29 changes: 29 additions & 0 deletions doc/classes/solidcolor.rst
@@ -0,0 +1,29 @@
SolidColor
==========

The `solidColor` element is a paint server that provides a single color with opacity. It can be referenced like the
other paint servers (i.e. gradients).

.. autoclass:: svgwrite.solidcolor.SolidColor

.. seealso:: https://www.w3.org/TR/SVGTiny12/painting.html#SolidColorElement


Methods
-------

.. automethod:: svgwrite.solidcolor.SolidColor.__init__

SVG Attributes
--------------

* **solid-color** -- ``'currentColor | <color> | inherit'`` (__init__() parameter `color`)

The `solid-color` attribute specifies the color that shall be used for this `solidColor` element. The keyword
``"currentColor"`` can be specified in the same manner as within a `<paint>` specification for the `fill` and
`stroke` properties.

* **solid-opacity** -- ``'<opacity-value> | inherit'`` (__init__() parameter `opacity`)

The `solid-opacity` parameter defines the opacity of the `solidColor`. Any values outside the range `0.0`
(fully transparent) to `1.0` (fully opaque) must be clamped to this range.

0 comments on commit fd66659

Please sign in to comment.