textures#

class CanvasTexture(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
code#

A snippet of JavaScript code to execute in the browser.

class ImageURLTexture(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
url#

A URL to a drawable resource like image, video, etc.

If provided with a file path, the file will be encoded using data: protocol (utf-8 encoding for *.svg and base64 for *.png and other binary formats).

NumPy 2D arrays are also supported and use data: encoding as well.

class Texture(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Base class for Texture models that represent fill patterns.

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

repetition#