Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#3044 closed defect (fixed)

d.northarrow: transparent color does not work

Reported by: annakrat Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Default Version: unspecified
Keywords: d.northarrow, cartography, gsoc2016 Cc:
CPU: Unspecified Platform: All

Description

Option fill_color of d.northarrow is not respected.

Attachments (1)

north_transp.diff (4.4 KB ) - added by lazaa 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by wenzeslaus, 9 years ago

When the fill color is set to transparent (fill_color=none) in the G7:d.northarrow, it is rendered as black.

d.northarrow style=arrow1 at=85.0,25.0 color=30:144:255 fill_color=none

Support for transparency, would increase the number of style options. I can see how even transparent line color would potentially create some interesting options as well.

Other modules support that but if it is too difficult to implement, the transparent option should be removed.

in reply to:  1 comment:2 by lazaa, 8 years ago

Replying to wenzeslaus:

When the fill color is set to transparent (fill_color=none) in the G7:d.northarrow, it is rendered as black.

d.northarrow style=arrow1 at=85.0,25.0 color=30:144:255 fill_color=none

Support for transparency, would increase the number of style options. I can see how even transparent line color would potentially create some interesting options as well.

Other modules support that but if it is too difficult to implement, the transparent option should be removed.

It looks that D_parse_color() returns same value both for input string "black" and "none". Could you provide me an example of module where transparency is already implemented?

comment:3 by annakrat, 8 years ago

d.barscale for example.

by lazaa, 8 years ago

Attachment: north_transp.diff added

comment:4 by lazaa, 8 years ago

option text_color added. Transparent color now works. However many symbols are not really transparent and their fill color is just white with no chance to change it.

comment:5 by annakrat, 8 years ago

In 68950:

d.northarrow: enable transparent fill color, see #3044

comment:6 by annakrat, 8 years ago

Resolution: fixed
Status: newclosed

Backported in r69051.

comment:7 by annakrat, 8 years ago

Milestone: 7.0.57.2.0
Note: See TracTickets for help on using tickets.