🧪 Version 0.2.2 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 draw_image

Draw an image at a location. This is part of the reference section.

Purpose

Draw a previously loaded image at a specific coordinate using its current size.

Snippet

Draw reference.png at x coordinate of 100 and y coordinate of 200.
image = sketch.get_image('reference.png')
sketch.draw_image(100, 200, image)

Parameters

  • x: Horizontal coordinate at which to draw the image.
  • y: Vertical coordinate at which to draw the image.
  • image: The image to draw.

Examples

Availability

Available for all platforms.

See also