Drop shadow drawable

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

Drop shadow drawable

Postby Adf » Sat Nov 11, 2017 4:29 am

Here is a simple implementation of drop shadow drawable.
It needs a source drawable and the shadow drawable. It has the adjustable y offset and the blur radius which has to be identical to the radius of the shadow. Example of usage:
Code: Select all
Image img = new Image(new DropShadowDrawable(skin.getDrawable("img.png"), skin.getDrawable("img_shadow.png")));

Note that this code is not meant be used as it is and should be adapted instead.
Adf
 
Posts: 7
Joined: Thu Jun 26, 2014 11:45 pm

Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 3 guests