Sign in to follow this  

Drawing transparent lines (Java AWT)

Recommended Posts

Yea it is possible to draw transparent any shape.

All you have to do is set the Opacity of the color (the alpha i believe).

Just change the color you are drawing the line with something like this

//code to draw transparent, line, rectangle, oval or w.e

100 would be your opacity, fiddle with that a bit to get what you want.

Sorry its not very clear, but hope it helps.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this