Shade and Tint

Started by Yacine, May 06, 2010, 06:10:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yacine

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?
Yacine

Jumpy

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.

Yacine

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)
Yacine

Jumpy

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.


Visio Guy

#4
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...
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Yacine

#5
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)
Yacine

Yacine

#6
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!
Yacine

Yacine

#7
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?
Yacine