Author Topic: Use a different accent of the same color based on another shapes Fill  (Read 128 times)

0 Members and 1 Guest are viewing this topic.

Another_Noone

  • Jr. Member
  • **
  • Posts: 54
ok, so iam kind of in an awkward spot. I want to force one shape to have the same accent color like the other, but one step lighter. and this for every possiblity. Ive thought about using the FillForegrnd Cell of the Shape with the color, to get the Color, and then add or subtract something, but I have no idea how. Ive attached the Shape. If someone has an idea that would be great.
Another_Noone

Just some weirdo on the Interwebs.

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3426
  • Ideas Visio-lized into solutions
Visio 2019 Pro

Another_Noone

  • Jr. Member
  • **
  • Posts: 54
Re: Use a different accent of the same color based on another shapes Fill
« Reply #2 on: March 08, 2019, 10:18:51 AM »
Thank you!

For anyone finding this while having the same Problem:

Use TINT(color,deltaLum) (color is the color you want to modify, deltaLum is the amount by which you want to increase/decrease luminosity.)
Another_Noone

Just some weirdo on the Interwebs.

Yacine

  • Hero Member
  • *****
  • Posts: 2542
Re: Use a different accent of the same color based on another shapes Fill
« Reply #3 on: March 08, 2019, 11:39:22 AM »
There are actually many other color functions. Check for instance tone, shade, blend.
Yacine

Another_Noone

  • Jr. Member
  • **
  • Posts: 54
Re: Use a different accent of the same color based on another shapes Fill
« Reply #4 on: March 18, 2019, 10:10:11 AM »
thanks Yacine, that opened up way more options than I thought. Shapes work and look actually very good. The 3D-feel is definetly there.
Another_Noone

Just some weirdo on the Interwebs.

Yacine

  • Hero Member
  • *****
  • Posts: 2542
Re: Use a different accent of the same color based on another shapes Fill
« Reply #5 on: March 18, 2019, 02:52:28 PM »
Check also Wapperdude's essay on colors. I think your question inspired him to write it.
http://visguy.com/vgforum/index.php?topic=8729.0
Yacine

vojo

  • Hero Member
  • *****
  • Posts: 1196
Re: Use a different accent of the same color based on another shapes Fill
« Reply #6 on: March 19, 2019, 07:33:37 AM »
Before the days of tint et al, you could also do this in RGB

user.redcolor = MIN(MAX(RED(<other shape color>), 240), 20)
user.greencolor = MIN(MAX(GREEN(<other shape color>), 240) 20)
user. bluecolor = MIN(MAX(BLUE(<other shape color>), 240),20)

<this shape color> = RGB(user.redcolor + 10, user.greencolor - 10, user.bluecolore + 10)

MIN, MAX compands the color to give you head room to change color

BTW, you can do the same sort of thing with font color

something like
font color = if(<average of RGB> < <something like 125>, 1,0)

This will make font white on dark colors....black on light colors...may want to experiment as appropriate

And lastly, font size

font size = 4pt * <current width>/<original width>

Shape grows ==> font grows    shape shrinks ==> font shrinks