Godtone (talk | contribs)
m bugfix
Godtone (talk | contribs)
Line 1,707: Line 1,707:
bg = args.get('bg') or args.get('background') or args.get('unhighlighted') # colour to indicate note is not in the highlighted subset (white by default)
bg = args.get('bg') or args.get('background') or args.get('unhighlighted') # colour to indicate note is not in the highlighted subset (white by default)
if bg==None: # default
if bg==None: # default
bg = 3
bg = 112 if type(colmap_in)==str else 3
# NOTE: if you are specifying a colouring based on 6-bit colours (2 bits per channel)
# NOTE: if you are specifying a colouring based on 6-bit colours (2 bits per channel)
#      (specified as 'RGB RGB RGB ...' with R,G,B in [0,1,2,3]) then
#      (specified as 'RGB RGB RGB ...' with R,G,B in [0,1,2,3]) then
Line 1,713: Line 1,713:
#      a lit-but-blackish colour (colour code 112) to differentiate/disambiguate from
#      a lit-but-blackish colour (colour code 112) to differentiate/disambiguate from
#      notes with the colour '333' = white that *are* in the subset
#      notes with the colour '333' = white that *are* in the subset
if bg==None and type(colmap_in)==str:
bg = 112
relative = args.get('relative') or args.get('rel') or False
relative = args.get('relative') or args.get('rel') or False
autorelative = args.get('autorelative') or args.get('autorel') or False
autorelative = args.get('autorelative') or args.get('autorel') or False