Menu

#2200 black and transparent black are ambiguous in vap files

nextrelease
closed-fixed
nobody
None
5
2019-09-30
2019-08-29
No

Changes outlined in bug https://sourceforge.net/p/autoplot/bugs/2175/ show that black and transparent black have the same representation in .vap files, and where vap strings are used to represent plots. For example, this script demos:

from org.autoplot.state import ColorSerializeDelegate

transparent= Color( 0,0,0,0 )
black= Color( 0,0,0 ) 

print 'transparent: ', ColorSerializeDelegate().format( transparent )
print 'black: ', ColorSerializeDelegate().format( black )

results in

transparent:  #0
black:  #0

I also notice that the ColorSerializeDelegate which does this has commented code which will use color names like "Black" to represent colors in vaps, instead of #0. This should be switched over as well.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2019-08-29

    See https://sourceforge.net/p/autoplot/bugs/2175/, which is the problem about storing color and size preferences.

     
  • Jeremy Faden

    Jeremy Faden - 2019-08-30

    I'm temporarily removing the background property from Plot until new code that fixes serialize/deserialize is fixed. This will probably be just a week, but I need to get a rev out without this problem.

     
  • Jeremy Faden

    Jeremy Faden - 2019-08-31

    I've verified that the serialized colors now properly represent 100% transparent. Also color names (like Black) are used in vap files as well.

     
  • Jeremy Faden

    Jeremy Faden - 2019-08-31
    • status: open --> open-fixed
     
  • Jeremy Faden

    Jeremy Faden - 2019-09-03
    • status: open-fixed --> open-accepted
     
  • Jeremy Faden

    Jeremy Faden - 2019-09-04

    This is fixed.

     
  • Jeremy Faden

    Jeremy Faden - 2019-09-19
    • status: open-accepted --> open-fixed
     
  • Jeremy Faden

    Jeremy Faden - 2019-09-30
    • status: open-fixed --> closed-fixed
     
MongoDB Logo MongoDB