CurveTexture

Inherits: Texture2D < Texture < Resource < RefCounted < Object

A texture that shows a curve.

Description

Renders a given Curve provided to it. Simplifies the task of drawing curves and/or saving them as image files.

Enumerations

enum TextureMode:

  • TEXTURE_MODE_RGB = 0

  • TEXTURE_MODE_RED = 1

Property Descriptions

Setter

set_curve(value)

Getter

get_curve()

The curve rendered onto the texture.


Default

0

Setter

set_texture_mode(value)

Getter

get_texture_mode()


Default

2048

Setter

set_width(value)

Getter

get_width()

The width of the texture.