🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_image

Load an image file. This is part of the reference section.

Purpose

Load an image from the local file system or URL.

Snippet

Load an image from the file reference.png.
image = sketch.get_image('reference.png')

Parameters

  • path: The location from which the file should be read.

Examples

Availability

Available for all platforms. On static and app renderers, will interpret path as a local file path using the operating system's conventions. For web, it will interpret path as a URL. Filenames like "example.png" will assume the same directory.

See also