Godtone
Joined 17 December 2020
→Novation Launchpad Pro MK3 isomorphic keyboard code: clearer derivative palettes + slight distinctness improvement for rb31 & rb30 |
|||
| Line 1,157: | Line 1,157: | ||
rb30old = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62 | rb30old = rb29[:6] + [126] + rb29[6:] # insert 126 between 61 and 62 | ||
rb31old = rb30old[:4] + [9] + rb30old[4:] # insert 9 between 84 and 96 | rb31old = rb30old[:4] + [9] + rb30old[4:] # insert 9 between 84 and 96 | ||
rb36ry = [120, 5, 60, 84, 96, 61, 126, 62, 99, 97] # len-1=9; 61 and 62 to be removed for distinctness | |||
rb36 = [ | rb36yg = [97, 13, 74, 98, 85, 75, 17, 122, 21] # len-1=8; 75 or 17 to be removed for distinctness | ||
rb36gb = [21, 25, 29, 33, 37, 78, 41, 79, 45] # len-1=8; lacking in colours so do not remove any if making rb36 more even | |||
rb36br = [45, 80, 69, 49, 81, 94, 53, 82, 95, 57, 58, 120] # len-1=11 53 or 82 to be removed for smoothness; 80 to be removed for distinctness | |||
rb36 = rb36ry[:-1] + rb36yg[:-1] + rb36gb[:-1] + rb36br[:-1] # maximal, but uneven, rainbow | |||
rb31 = [c for c in rb36 if c not in [61,62,98,75,80]] | |||
rb30 = [c for c in rb36 if c!=53] | |||
# 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. | ||
# note that i chose the +0.4 experimentally based on the colour palette that seemed most distinct to me. | # note that i chose the +0.4 experimentally based on the colour palette that seemed most distinct to me. | ||