Android Neon Tubing

I want to know that it is possible to create the neon effect in android, as shown in the image below.

enter image description here

I want to draw text using this effect in different colors, is it possible.

+3
source share
1 answer

It is very easy to create it in bitmap images using the glow effect with bright colors and placing it on a dark background.

It is also easy to add a glow like a shadow to the text using this code, for example

paint.setShadowLayer (radius float, float dx, float dy, int color)

or in the xml file see example: Android - shadow on text?

However, after experimenting, text effects in android such as shadoLayer or

glowPaint.setMaskFilter(new BlurMaskFilter(20, Blur.NORMAL));

, . - Photoshop, - , , , Xfermodes, .

EDIT: - : 1. , 2. , , .

, , .

+4

Source: https://habr.com/ru/post/1792469/


All Articles