code: def trianglew(ctx, t, amplitude=1, period=1):
      A = amplitude
      P = period
  
      return 2 * A * (0.5 - ctx.fabs(1 - 2 * ctx.frac(t / P + 0.25)))
  
imports: from .functions import defun_wrapped
label_desc: Use image node_id 2 for calling a global function with example usage: trianglew(ctx, t, amplitude, period) and returns: unknown