E
E
electrokeller2014-03-13 18:16:04
Java
electrokeller, 2014-03-13 18:16:04

How to implement a color transition most efficiently?

Hello!
I am writing a java program that has a graphic element that changes color when dragging a JSlider slider. Can you please tell me how to implement the color transition correctly? Let's say there should be a smooth transition red-violet-blue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-03-13
@electrokeller

switch to HSB color space and change HUE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question