diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-12-10 12:40:42 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-12-10 12:40:42 +0000 |
| commit | cd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe (patch) | |
| tree | 9835ce4a35ad3ff6d0f9b073f08a3f6aefc463cb /src/style.h | |
| parent | Add JessyInk namespace. (diff) | |
| download | inkscape-cd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe.tar.gz inkscape-cd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe.zip | |
New CSS blending modes (outside of filters).
Define WITH_CSSBLEND to try out.
Note: The modes are defined in CSS Compositing and Blending Level 1.
To do: GUI. Isolate SVG drawing from Inkscape background (i.e. page border).
(bzr r12845)
Diffstat (limited to 'src/style.h')
| -rw-r--r-- | src/style.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/style.h b/src/style.h index bc4df96e2..014d2b72f 100644 --- a/src/style.h +++ b/src/style.h @@ -364,6 +364,11 @@ struct SPStyle { /** opacity */ SPIScale24 opacity; + /** mix-blend-mode: CSS Compositing and Blending Level 1 */ + SPIEnum isolation; + // Could be shared with Filter blending mode + SPIEnum blend_mode; + /** color */ SPIPaint color; /** color-interpolation */ @@ -606,6 +611,30 @@ enum SPCSSDisplay { SP_CSS_DISPLAY_TABLE_CAPTION }; +enum SPIsolation { + SP_CSS_ISOLATION_AUTO, + SP_CSS_ISOLATION_ISOLATE +}; + +enum SPBlendMode { + SP_CSS_BLEND_NORMAL, + SP_CSS_BLEND_MULTIPLY, + SP_CSS_BLEND_SCREEN, + SP_CSS_BLEND_DARKEN, + SP_CSS_BLEND_LIGHTEN, + SP_CSS_BLEND_OVERLAY, + SP_CSS_BLEND_COLORDODGE, + SP_CSS_BLEND_COLORBURN, + SP_CSS_BLEND_HARDLIGHT, + SP_CSS_BLEND_SOFTLIGHT, + SP_CSS_BLEND_DIFFERENCE, + SP_CSS_BLEND_EXCLUSION, + SP_CSS_BLEND_HUE, + SP_CSS_BLEND_SATURATION, + SP_CSS_BLEND_COLOR, + SP_CSS_BLEND_LUMINOSITY +}; + enum SPEnableBackground { SP_CSS_BACKGROUND_ACCUMULATE, SP_CSS_BACKGROUND_NEW |
