H
H
Herman Coffman2021-10-19 14:02:45
C++ / C#
Herman Coffman, 2021-10-19 14:02:45

How to take a shade of color?

There is a random color. I need to get a random shade from him. Random parameters - fonColor, GetComponent().material.color. I read a lot of information, but I did not understand anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-10-19
@vabka

You call RGBToHSV , change the value of S and V as you like, and then using HSVToRGB you convert back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question