tag:blogger.com,1999:blog-6885067460687713893.post8331640469725898733..comments2024-03-28T05:50:40.310+01:00Comments on Harmonic Code: Beach coding...Han Solohttp://www.blogger.com/profile/12574196875988408685noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6885067460687713893.post-46055481175105002132012-08-29T06:15:10.059+02:002012-08-29T06:15:10.059+02:00You're right, somehow I missed that one (I thi...You're right, somehow I missed that one (I think I've used my own implementation too often).<br />Thanx for the useful hint,<br /><br />Cheers,<br /><br />GerritHan Solohttps://www.blogger.com/profile/12574196875988408685noreply@blogger.comtag:blogger.com,1999:blog-6885067460687713893.post-41549631913343023282012-08-29T00:13:40.129+02:002012-08-29T00:13:40.129+02:00JavaFX has built-in Interpolator instances and Col...JavaFX has built-in Interpolator instances and Color implements Interpolatable, so you can easily use different kinds of interpolation (such as EASE_BOTH to give a smooth gradient, DISCRETE to give a hard edged gradient or LINEAR to get the same effect as the posted interpolation function) if you replace the interpolateColor function call with color = (Color) Interpolator.LINEAR.interpolate(sortedStops.get(i).getColor(), sortedStops.get(i + 1).getColor(), fraction)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6885067460687713893.post-11874011920668020922012-08-20T14:52:14.451+02:002012-08-20T14:52:14.451+02:00LOL. Had to promise the same, but I negotiated tha...LOL. Had to promise the same, but I negotiated that I could bring the netbook. Can't code on that, but not completely offline.tbeehttps://www.blogger.com/profile/02676132703267756531noreply@blogger.com