godot / 3.4 / classes / class_curvetexture.html

CurveTexture

Inherits: Texture < Resource < Reference < 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.

Properties

Property Descriptions

Curve curve

Setter

set_curve(value)

Getter

get_curve()

The Curve that is rendered onto the texture.

int width

Default

2048

Setter

set_width(value)

Getter

get_width()

The width of the texture (in pixels). Higher values make it possible to represent high-frequency data better (such as sudden direction changes), at the cost of increased generation time and memory usage.

© 2014–2022 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.4/classes/class_curvetexture.html