Ask Your Question
2

What is the technique to eliminate the transparent effect in draw_line API when lines overlap in Godot 4?

asked 2023-06-12 09:27:25 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-12 09:54:02 +0000

plato gravatar image

The technique to eliminate the transparent effect in drawline API when lines overlap in Godot 4 is to use the drawpolyline API instead of drawline. This can be done by passing an array of points to the drawpolyline function, which will draw a solid line connecting all the points in the array. By using this technique, there will be no transparency when lines overlap, and the lines will appear solid.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-12 09:27:25 +0000

Seen: 19 times

Last updated: Jun 12 '23