Visio Guy

Visio Discussions => General Visio => Topic started by: Yacine on May 06, 2010, 06:10:34 AM

Title: Shade and Tint
Post by: Yacine on May 06, 2010, 06:10:34 AM
What did MS have in mind when they gave Visio the tint and shade functions?
Apart from a different sign in the amount argument, they do exactly the same.
I don't get the philisophy behind that.
Or am I missing something?
Title: Re: Shade and Tint
Post by: Jumpy on May 06, 2010, 06:56:19 AM
Don't they do exactly the opposite thing?

If you use Shade with a base color, z.B. RED: Shade(RGB(255,0,0),60)
it gets darker by increasing the number from 0 (Shape is orginal red) to max 240 where Shape is black.

If you use Tint with a base color, z.B. RED: Shade(RGB(255,0,0),60)
it gets brighter by increasing the number from 0 (Shape is orginal red) to max 240 where Shape is white.

Although using my optical sensor suite mark I (my eye) the shape seems already black/white when reaching 120.
Title: Re: Shade and Tint
Post by: Yacine on May 06, 2010, 07:24:58 AM
shade(color, x) = tint (color, -x) !

Your shape is plain white or black because LUM(RGB(255,0,0) = 120. The arguments for shade and tint are to be understood as difference to the reference.

If you want absolute values, try HSL(HUE(RGB(255,0,0)), SAT(RGB(255,0,0)), ABSOLUTE_LUMINOSITY)
Title: Re: Shade and Tint
Post by: Jumpy on May 06, 2010, 07:43:10 AM
Oh, didn't see that you can use negative numbers, too, as argument.
In that case you are certainly right, that it doesn't make much sense.

Title: Re: Shade and Tint
Post by: Visio Guy on May 06, 2010, 08:37:20 AM
Hinweis: SHADE und TINT sind ab Visio 2007.

Shade sounds like it would work with Luminosity and Tint sounds like it would work with Hue. I would have to do more investigation, though.

I think the one is just the negative of the other. I think MS uses one to make colors lighter and the other to make colors darker. Maybe just easier to read ShapeSheet formulas...
Title: Re: Shade and Tint
Post by: Yacine on May 06, 2010, 08:48:46 AM
I checked it,
MS gives for both function the luminosity as factor to change
http://msdn.microsoft.com/en-us/library/aa342308.aspx
http://msdn.microsoft.com/en-us/library/aa342309.aspx
Tried it in Visio 2007 and got confirmation.
shade(color, x) = tint (color, -x) = HSL(hue(color),sat(color),lum(color) - x)
Title: Re: Shade and Tint
Post by: Yacine on May 06, 2010, 08:54:50 AM
My old friend Leo says to tint: die Farbe, der Farbstich, der Farbton, die Schattierung (well this one refers more to the luminosity), die Tönung
and that's what you are saying: the HUE!
Title: Re: Shade and Tint
Post by: Yacine on May 10, 2010, 08:20:24 PM
I googled today "Shade and Tint" and wow! I may have been too fast in my Judgement:
http://en.wikipedia.org/wiki/Tints_and_shades

Still I cannot get rid of the sentiment that a feature request was misinterpreted. It makes so much more sense to have a function to modify the saturation and one for the hue. (The sat modification will follow with V2012?)
----
Actually the saturation can be modified with the TONE(color,int) function. What about the hue?