[GRASS-dev] [GRASS GIS] #3044: d.northarrow: transparent color does not work

#3044: d.northarrow: transparent color does not work
-------------------------------------------------+-------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Keywords: d.northarrow, cartography, gsoc2016 | CPU: Unspecified
Platform: All |
-------------------------------------------------+-------------------------
Option fill_color of d.northarrow is not respected.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------

Comment (by 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/3044#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------

Comment (by lazaa):

Replying to [comment:1 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?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------

Comment (by annakrat):

d.barscale for example.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------
Changes (by lazaa):

* Attachment "north_transp.diff" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------

Comment (by lazaa):

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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------

Comment (by annakrat):

In [changeset:"68950" 68950]:
{{{
#!CommitTicketReference repository="" revision="68950"
d.northarrow: enable transparent fill color, see #3044
}}}

--
Ticket URL: </ticket/3044#comment:5>
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.5
Component: Default | Version: unspecified
Resolution: fixed | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

Backported in r69051.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#3044: d.northarrow: transparent color does not work
-------------------------+-------------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.0
Component: Default | Version: unspecified
Resolution: fixed | Keywords: d.northarrow, cartography, gsoc2016
       CPU: | Platform: All
  Unspecified |
-------------------------+-------------------------------------------------
Changes (by annakrat):

* milestone: 7.0.5 => 7.2.0

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3044#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>