HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Skintype with "shadow" gradient inside of the Gauge #191

Closed Pureandy closed 4 years ago

Pureandy commented 4 years ago

Hello HanSolo,

In the Screenshot of all Skintypes of Medusa is one, that I can't find: Skintype

Is this a normal skin and if not how can I, when creating a custom skin, create this shadow effect inside of the Gauge?

Thanks in advance

HanSolo commented 4 years ago

That is a so called framed gauge. The idea behind the FGauge was to provide different frames where you can add a gauge control e.g. for car dashboards etc. The shadow effect can simply be created using the JavaFX effect InnerShadow : https://docs.oracle.com/javase/8/javafx/api/javafx/scene/effect/InnerShadow.html