def tick args
  args.outputs.labels << {
    x: 640,
    y: 30.from_top,
    text: "Triangle rendering is available in Indie and Pro versions (ignored in Standard Edition).",
    alignment_enum: 1
  }

  transform_scale = ((args.state.tick_count / 3).sin.abs ** 5).half
  args.outputs.sprites << [
    { x:         600,
      y:         320,
      x2:        600,
      y2:        400,
      x3:        640,
      y3:        360,
      path:      "sprites/square/blue.png",
      source_x:  0,
      source_y:  0,
      source_x2: 0,
      source_y2: 80,
      source_x3: 40,
      source_y3: 40 },
    { x:         600,
      y:         400,
      x2:        680,
      y2:        (400 - 80 * transform_scale).round,
      x3:        640,
      y3:        360,
      path:      "sprites/square/blue.png",
      source_x:  0,
      source_y:  80,
      source_x2: 80,
      source_y2: 80,
      source_x3: 40,
      source_y3: 40 },
    { x:         640,
      y:         360,
      x2:        680,
      y2:        (400 - 80 * transform_scale).round,
      x3:        680,
      y3:        (320 + 80 * transform_scale).round,
      path:      "sprites/square/blue.png",
      source_x:  40,
      source_y:  40,
      source_x2: 80,
      source_y2: 80,
      source_x3: 80,
      source_y3: 0 },
    { x:         600,
      y:         320,
      x2:        640,
      y2:        360,
      x3:        680,
      y3:        (320 + 80 * transform_scale).round,
      path:      "sprites/square/blue.png",
      source_x:  0,
      source_y:  0,
      source_x2: 40,
      source_y2: 40,
      source_x3: 80,
      source_y3: 0 }
  ]
end
