matrix colors

Author:
License: GPL
Github: rbrt/push/matrix colors.axo

Inlets

int32.positive color

int32.positive brightness

Outlets

int32 color

Attributes

combo colors

Declaration
uint8_t map[16] = {0, 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57};

uint8_t getcolor(uint8_t color, uint8_t brightness) {
  uint8_t result;
  uint8_t bness;
  if (color > 1)
    bness = (2 - (brightness));
  else
    bness = brightness;
  result = color + bness;
  return result;
}
Control Rate
outlet_color = getcolor(map[attr_colors + inlet_color], inlet_brightness % 3);

Privacy

© 2024 Zrna Research