Line 2d texture mode having blue tint

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By musa

Hello, i am making a simple paint game using line 2d, i tried to add a texture to the line 2d using

activeLine.texture = selected_texture

where the selected texture is just an image loaded using load() function.
Everything is working as expected but when i draw, the images that come out in the line
have a strong blue tint that is not present in the original image.
Here’s complete code logic -

activeLine = Line2D.new()
add_child(activeLine)
activeLine.texture = selected_texture
activeLine.texture_mode = Line2D.LINE_TEXTURE_TILE
activeLine.joint_mode = Line2D.LINE_JOINT_ROUND
activeLine.end_cap_mode = Line2D.LINE_CAP_ROUND 
activeLine.begin_cap_mode = Line2D.LINE_CAP_ROUND
activeLine.width = 30.0

if event is InputEventScreenDrag:
    if activeLine:
        activeLine.add_point(get_local_mouse_position())

The repeat is enabled for the texture and it is getting repeated as expected.please check the screenshot below.

original texture image as well as usage screenshot -
https://drive.google.com/drive/folders/18sspiubibCAVNUHgMTyXGij2P4CYbL3x

:bust_in_silhouette: Reply From: RinAkumetsu

It looks like you didn’t change a Default Color property in your Line2D node, that is blue (that’s how I reproduced the same color with your image). Change it to white instead. I hope it helps.

This YT video shows it is not necessary to touch the default color. The color has to disappear when a texture is present !

https://www.youtube.com/watch?v=fqPpdXGoVqQ

DriNeo | 2023-01-20 21:56

As you can see in the video, a color of a sprite in line.png is clearly brown, but in the editor along the line the color is blue. So the problem remains if you not touch the default color. Or did you mean something else with your comment?

RinAkumetsu | 2023-01-20 22:49

You’re right sorry.
This behaviour of Line2D is overly complicated. I consider to make it an issue.

DriNeo | 2023-01-20 23:56