Opacity Vs Alpha Opacity???

Post questions on how to use or achieve an effect in Inkscape.
User avatar
David Hewitt
Posts: 142
Joined: Sun Jan 11, 2009 4:10 pm

Opacity Vs Alpha Opacity???

Postby David Hewitt » Mon Feb 09, 2009 12:14 am

Just wondering......(if anyone can help clear this up for me...)
what is the difference (if any) between the:
1) Opacity % box (on the bottom tool bar)& the
2) Alpha (Opacity) slider setting. ( in the fill & Stroke properties window)

I.E. are these just 2 different ways to do the same thing? Or do they have slightly different functions?.

The reason i ask is that changing one does not update the other and they seem to conflict with each other....

Is this just a bug or is there some explanation for this?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Opacity Vs Alpha Opacity???

Postby prkos » Mon Feb 09, 2009 12:29 am

It must be a bug, the other one updates when you change one.

Are you sure you're looking at opacity slider, and not A box (alpha), because that box only changes opacity of fill or stroke (independently)?
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Opacity Vs Alpha Opacity???

Postby Simarilius » Mon Feb 09, 2009 1:15 am

The opacity box on the toolbar is the same as the object opacity slider at the bottom of the fill/stroke dialog, and is the whole object opacity. (and is linked)
The alpha (opacity) slider that your refering to is the alpha part of the color thats being applied to the stroke or fill, and is specific to either the fill or stroke style.

User avatar
David Hewitt
Posts: 142
Joined: Sun Jan 11, 2009 4:10 pm

Re: Opacity Vs Alpha Opacity???

Postby David Hewitt » Mon Feb 09, 2009 8:41 pm

So you can create opaque colours......Ok
And then use these in objects and object groupings and still have the ability to apply the general object opacity to the group as a whole......
This is the reason?
It makes sense i guess....
Thanks for that......

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Opacity Vs Alpha Opacity???

Postby Simarilius » Mon Feb 09, 2009 11:04 pm

Thats exactly it.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Opacity Vs Alpha Opacity???

Postby prkos » Mon Feb 09, 2009 11:06 pm

There is also a nice feature that you can make fill transparent and stroke opaque when you're using A box, when using the opacity slider it is applied to the whole object, fill and stroke.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Opacity Vs Alpha Opacity???

Postby microUgly » Tue Feb 10, 2009 7:45 pm

There is a conflict between Opacity and Alpha, and the last time I saw it discussed it was intentional.

Inkscape gives the impression that colour is made up of RGBA, but it's not. In SVG there is only RGB, with an Opacity. Opacity can be applied to the fill, stroke, gradient stop or an entire object. [Please correct me if I'm wrong].

Typically Inkscape treats A as a colour value and O as the overall objects transparency. But the line get blurred and difficult to understand with gradient stops. If you have a 50% transparent stop, the opacity value will be 50% and the alpha value will be 255. If you move the alpha value it effects the opacity value as well as the Alpha. If you deselect the stop then select it again, the alpha will return to 255 and opacity will be the set to the new value. So this is the one situation opacity does not apply to an entire object, and instead applies to the fill.

To me, even though everything uses opacity in the SVG code, I think concepts of Alpha should be reserved for when we are dealing with colour (fill, stroke, gradient) and opacity should apply to the overall object.

User avatar
David Hewitt
Posts: 142
Joined: Sun Jan 11, 2009 4:10 pm

Re: Opacity Vs Alpha Opacity???

Postby David Hewitt » Tue Feb 10, 2009 8:33 pm

Just when i thought i had wrapped my head around that one.... :?
I'll have to re-read that a few times...(thanks for the info though)


Return to “Help with using Inkscape”