CM - color maker

CM: color maker (generate colors from ARGB/AHSV values)

Syntax

cm([a], r/h, g/s, b/v, [mode])

Arguments

  • a: Alpha value (optional, 0 is transparent 255 is fully opaque, default 255)
  • r/h: Red (0–255) / Hue (0–360)
  • g/s: Green (0–255) / Saturation (0–100)
  • b/v: Blue (0–255) / Value (0–100)
  • mode: Color mode (r for ARGB, h for AHSV, optional, default is ARGB)

Examples

FormulaDescription
$cm(128,255,0,0)$Will generate a 50% transparent red color #FFFF0000
$cm(0,df(ss)*4.25,255-df(ss)*4.25)$Will move from blue to green based on seconds



Privacy Policy