Jump to content

Added widget color transition time


Josh
 Share

Recommended Posts

I added an extra parameter to the Widget::SetColor method that accepts a transition time in milliseconds for the color change to occur. The widget stores a timer that updates at 60 hz and causes the widget color to blend to the target color, with a redraw each interval. It works really well and gives you HTML-like effects, like when you hover over a panel and the color changes gradually. If another color change command occurs before the transition is complete, the transition just cancels and the new command determines behavior.

This can probably be done for gradual widget shape transitions (position and size) as well, at some point in the future.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...