Reference for set_image_mode
Specify how Sketchingpy should place images. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
set_image_mode
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Determine how images' coordinates should be interpreted when drawing. Available options:
- center: Provide x and y coordinates of the center of the image.
- corner: Left and top coordinates of the image.
Snippet
Indiciate that the image parameters will be center X and center Y.
sketch.set_image_mode('center')
Parameters
- mode: String describing the mode to use.
Examples
Availability
Available for all platforms.