Godtone (talk | contribs)
Godtone (talk | contribs)
Novation Launchpad Pro MK3 isomorphic keyboard code: improved rainbows for 30- and 31-colour palettes
Line 1,155: Line 1,155:
rb18 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 94, 82, 57]
rb18 = [120, 60, 84, 96, 109, 13, 98, 122, 25, 29, 37, 41, 45, 49, 81, 94, 82, 57]
rb29 = [120, 5, 60, 84, 96, 61, 62, 97, 13, 74, 98, 75, 122, 21, 25, 29, 33, 37, 41, 79, 67, 80, 49, 81, 94, 53, 95, 57, 58]
rb29 = [120, 5, 60, 84, 96, 61, 62, 97, 13, 74, 98, 75, 122, 21, 25, 29, 33, 37, 41, 79, 67, 80, 49, 81, 94, 53, 95, 57, 58]
rb30 = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62
rb30old = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62
rb31 = rb30[:4] + [9] + rb30[4:] # insert 9 between 84 and 96
rb31old = rb30[:4] + [9] + rb30[4:] # insert 9 between 84 and 96
rb30 = [120, 5, 60, 84, 96, 126, 99, 97, 13, 74, 85, 17, 122, 21, 25, 29, 33, 37, 78, 41, 79, 45, 80, 49, 81, 94, 82, 95, 57, 58]
rb31 = [120, 5, 60, 84, 96, 126, 99, 97, 13, 74, 85, 17, 122, 21, 25, 29, 33, 37, 78, 41, 79, 45, 80, 49, 81, 94, 53, 82, 95, 57, 58]
rb36 = [120, 5, 60, 84, 96, 61, 126, 62, 99, 97, 13, 74, 98, 85, 75, 17, 122, 21, 25, 29, 33, 37, 78, 41, 79, 45, 80, 69, 49, 81, 94, 53, 82, 95, 57, 58]
rb36 = [120, 5, 60, 84, 96, 61, 126, 62, 99, 97, 13, 74, 98, 85, 75, 17, 122, 21, 25, 29, 33, 37, 78, 41, 79, 45, 80, 69, 49, 81, 94, 53, 82, 95, 57, 58]
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as to derive a 17-colour palette.
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as to derive a 17-colour palette.