Skip to main content

Posts

Featured

JavaFx Music Spectrum

My first 2018 post, and hi to you all.


Building a circular progress indicator specifically for showing the music progress was the initial idea which  was fairly simple to do with the Animation class ,with the code snippet below

Animation = new Transition() { { setCycleDuration(Duration.seconds(5)); setInterpolator(Interpolator.LINEAR); } @Override protected void interpolate(double frac) { double interpolation_angle = slerpFunc(frac); double sinValue = Math.sin(Math.toRadians(interpolation_angle + startAngle)); double cosValue = Math.cos(Math.toRadians(interpolation_angle + startAngle)); double angleX = center2d.getX() + (radius * 0.4) * sinValue; double angleY = center2d.getY() + (radius * 0.4) * cosValue; gc.fillOval(angleX,angleY,1,1); } };
My Slerp function looks like so, found on stack…

Latest posts

JavaFx Custom Volume Knob Node "Skin 2"

Pi4J DEMO "LIGHTING LEDS WITH AN APP"

Raspberry PI and Java ME IOT PROJECT

JavaFx Custom Volume Knob Node

IEBC (Independent Electoral and Boundaries Commission) 'DATA'

Javafx Raspberry Pi StockTicker

254 Closest Health FacilityFx

Javafx ("Les_Misérables")

Javafx and Swing DashBoard("Kenya Terror Attacks 1992 to 2014")

Javafx QuadCurve("RainbowRGB")