Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands

Index

Functions

Functions

  • Generate the meme of an expression.

    throws

    Error if the expression is syntactically invalid or its image cannot be generated

    Parameters

    • expression: Expression

      the expression to generate

    Returns string

    a data: URL for the image generated by the expression, according to the language definition in the PS3 handout. See Canvas.toDataURL.

  • Compute the size of an image expression.

    throws

    Error if the expression is syntactically invalid or its size cannot be computed

    Parameters

    • expression: Expression

      the meme expression to use

    Returns string

    "WxH" (in the same syntax as the corresponding part of the @ resize operator) representing the width W and height H of the image generated by the expression, according to the language definition in the PS3 handout

Generated using TypeDoc