Skip to content

Cave Memo API

james edited this page Nov 5, 2017 · 2 revisions

These methods are part of the cave JavaScript API, and allow you to interact with the Miiverse drawing tool.

Methods

memo_open

  • Usage:

    Open the drawing tool interface.

memo_clear

  • Usage:

    Clear the current drawing.

memo_getImageBmp

  • Returns: {String}

  • Usage:

    Returns the drawing as base64 encoded BMP image.

memo_setImageBmp

  • Arguments:

    • {String} base64Bmp
  • Usage:

    Set the drawing image from a base 64 encoded bitmap.

memo_getImageRawTga

  • Returns: {String}

  • Usage:

    (untested) Returns the drawing as base64 encoded TGA image.

memo_setImageRawTga

  • Arguments:

    • {String} base64Tga
  • Usage:

    (untested) Set the drawing image from a base 64 encoded TGA image.

memo_getImageZipTga

  • Returns: {String}

  • Usage:

    (untested) Returns the drawing as base64 encoded compressed TGA image.

memo_setImageZipTga

  • Arguments:

    • {String} base64ZipTga
  • Usage:

    (untested) Set the drawing image from a base 64 encoded compressed TGA image.

memo_hasValidImage

  • Returns: {Boolean}

  • Usage:

    (unknown)