MOS substitution: Difference between revisions

Inthar (talk | contribs)
Inthar (talk | contribs)
Line 211: Line 211:
== MOS substitution scales and RTT ==
== MOS substitution scales and RTT ==
== Pseudocode ==
== Pseudocode ==
def letterwise_subst(template_word, slot, filling_word):
    result = ""
    i = 0
    for letter in template_word:
        if letter == slot:
            result += filling_word[i]
            i += 1
        else:
            result += letter
    return result
  # brightness is multiplied by the gcd of the step counts in UDP
  # brightness is multiplied by the gcd of the step counts in UDP
  # nX X (nY Y nZ Z) (brightness_of_filling_mos) | (nY + nZ - gcd(nY, nZ) - brightness_of_filling_mos)
  # nX X (nY Y nZ Z) (brightness_of_filling_mos) | (nY + nZ - gcd(nY, nZ) - brightness_of_filling_mos)