Blend mode in Text

Post questions on how to use or achieve an effect in Inkscape.
bhavin_v
Posts: 2
Joined: Mon Aug 29, 2016 12:19 pm
Contact:

Blend mode in Text

Postby bhavin_v » Mon Aug 29, 2016 12:24 pm

I have an inkscape text box with some text in it:

eg:

Code: Select all

Count us in!


- I decreased the spacing between characters so they slightly overlap.
- Then, I used 'Fill and Stroke' to individually change the color of each character so that adjacent characters have different colors.

Question: I want to use an effect similar to CSS': mix-blend-mode: multiply.

The idea is that the overlapping colors between characters should multiply to create a darker shade.

You can see an example in the logo here: www.countus.in. The current logo is purely created in HTML/CSS and I want to covert it to SVG so that I can port to different mediums as well as have better cross browser support.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Blend mode in Text

Postby Moini » Tue Aug 30, 2016 12:27 am

You'll currently need to put the letters on different layers in Inkscape, if you want to leverage the blend modes (Inkscape 0.91 only has them for layers, the next version has them for each object). First you'll need to convert the text to path (Path -> Object to Path), then ungroup the result and move each letter into its own layer. In the layers dialog, you can set a blend mode for each layer.

Or you use the boolean operations to cut the letters into parts, and color those parts correctly. This will work in any browser - I think the blend modes may partially be unsupported (but I'm not sure).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

bhavin_v
Posts: 2
Joined: Mon Aug 29, 2016 12:19 pm
Contact:

Re: Blend mode in Text

Postby bhavin_v » Wed Aug 31, 2016 12:12 am

Thanks Moini, this worked! For future reference, here are the exact steps:

1. Select the text box and then Select Path -> Object to Path
2. Select the entire text (all Objects, possible with single selection click) and press Ctrl+u
3. Layers -> Add a new layer (Add as many as you need).
4 Move each letter to it's own layer by clicking 'Layer -> Move Selection to Layer' and then selecting the appropriate Layer.
5 Make sure you see the 'Layer' menu. This is possible by Selecting 'Layer -> Layers'
6 In the Layer menu, Select Layer 1 (and repeat for Layer 2) select 'Multiply' in the 'Blend mode'.

Caveats:
- One thing that I did, but didn't fully understand, was that I moved 'Count' aplphabets to Layers 1 to 5 respectively but only need to modify the 'Blend Mode' from 'Normal' to 'Multiply' for Layers 1 and 2. It seems like a Layer is a transparent square and if I select multiply for Layer 3, for example, the blending is *more* than the text part that visually overlaps for letters u, n and t.
- Spaces do not need their own layer since we aren't blending them with anything.
- For characters after a space, you can start assigning them to Layer 1 again.

Hope that helps.


Return to “Help with using Inkscape”