Thursday, January 16, 2020

Moving Hearts

Been thinking it would be nice for the Valentine's App
to have a splash screen, or at least an intro. After some
experimenting, have our enlaced hearts moving - in 6 seconds -
from the left corner to the center of the screen.

The image is a png, at the moment, so I am getting blurry outlines.
I would have to make a vectorial shape for it to keep its crispness.

Below:


For the code:



The Eclipse interface doen't suggest the correct Duration import; it is javafx.util.Duration!

                                                              *     *     *

From pdf format, the hearts open in perfect shape in a web browser. Below, at 100%,
125, 150.



That is because the pdf format stores the information on a 'canvas'!

No comments: