circle or rect or line shine

How to design any color that will shine circle or rect or line.

I currently think of the first layer alpha = .3 the second layer alpha = 1
But it doesn’t feel bright

1 Like

What do you mean by shine? Can provide an image or a link to an image with this effect?

If it is a big image, be clear on what part of image ‘shines’.

1 Like

Similar to this effect
for line, rect, circle

My method is to stack two Display Objects, anthor a object of alpha .3 but the effect is not very good

Have a nice day

Thank you

1 Like

That looks like a blur effect.

The best I can come up with is to:

  1. draw
  2. snapshot https://docs.coronalabs.com/api/library/display/newSnapshot.html
  3. blur https://docs.coronalabs.com/guide/graphics/effects.html#filter.blurgaussian
  4. draw

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2021/04/blur.zip

1 Like

@roaminggamer’s advice and sample code will get you far. My suggestion is that if you wish to create the glow effect, that you swap the colours a bit. You should have the centre of the image be white (as in, it is shining bright) and the blur around the object is set to the actual colour of the object.

You can also get by a bit easier by creating a “blurry circle” image that you use for stroke effect. That way you don’t need to handle snapshots and blur during runtime.

1 Like

@roaminggamer
HI
Thank you for your DEMO
Your code is very artistic
Easy to read

@XeduR
HI
Thanks for your advice

Combine
Suggestions from your two pro
I get the following result
As shown
line

Thank you
Have a nice day

1 Like