Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: smoothly changing colors

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Posts
    1

    smoothly changing colors

    i was wondering if any new how to make an object change colors smoothly. i have an object that is blue and when i click on it i want to gradually change the color to another color. need some help.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: smoothly changing colors

    Hi !

    Remember the old color, store the new one somewhere, setup a timer or something that interpolates from the first to the seond color in x number of steps, and there you have it.

    Mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •