Py5Graphics.texture_wrap()

Defines if textures repeat or draw once within a texture map.

Description

Defines if textures repeat or draw once within a texture map. The two parameters are CLAMP (the default behavior) and REPEAT. This function only works with the P2D and P3D renderers.

This method is the same as texture_wrap() but linked to a Py5Graphics object. To see example code for how it can be used, see texture_wrap().

Underlying Java method: PGraphics.textureWrap

Syntax

texture_wrap(wrap: int, /) -> None

Parameters

  • wrap: int - Either CLAMP (default) or REPEAT

Updated on September 11, 2021 16:51:34pm UTC