@Override
		public void paintIconAnimated( Component c, Graphics g, int x, int y, float animatedValue ) {
			Color color = ColorFunctions.mix( onColor, offColor, animatedValue );

			g.setColor( color );
			g.fillRoundRect( x, y, width, height, height, height );

			int thumbSize = height - 4;
			float thumbX = x + 2 + ((width - 4 - thumbSize) * animatedValue);
			int thumbY = y + 2;
			g.setColor( Color.white );
			((Graphics2D)g).fill( new Ellipse2D.Float( thumbX, thumbY, thumbSize, thumbSize ) );
		}
Experimental radio button icon that:
- fades icon color from off to on color
- animates size of center dot from zero to full size
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatAnimatedIconTest.java