Line2D

Inherits: Node2D < CanvasItem < Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

bool

antialiased

false

LineCapMode

begin_cap_mode

0

bool

closed

false

Color

default_color

Color(1, 1, 1, 1)

LineCapMode

end_cap_mode

0

Gradient

gradient

LineJointMode

joint_mode

0

PackedVector2Array

points

PackedVector2Array()

int

round_precision

8

float

sharp_limit

2.0

Texture2D

texture

LineTextureMode

texture_mode

0

float

width

10.0

Curve

width_curve

Methods

void

add_point ( Vector2 position, int index=-1 )

void

clear_points ( )

int

get_point_count ( ) const

Vector2

get_point_position ( int index ) const

void

remove_point ( int index )

void

set_point_position ( int index, Vector2 position )


Enumerations

enum LineJointMode:

LineJointMode LINE_JOINT_SHARP = 0

There is currently no description for this enum. Please help us by contributing one!

LineJointMode LINE_JOINT_BEVEL = 1

There is currently no description for this enum. Please help us by contributing one!

LineJointMode LINE_JOINT_ROUND = 2

There is currently no description for this enum. Please help us by contributing one!


enum LineCapMode:

LineCapMode LINE_CAP_NONE = 0

There is currently no description for this enum. Please help us by contributing one!

LineCapMode LINE_CAP_BOX = 1

There is currently no description for this enum. Please help us by contributing one!

LineCapMode LINE_CAP_ROUND = 2

There is currently no description for this enum. Please help us by contributing one!


enum LineTextureMode:

LineTextureMode LINE_TEXTURE_NONE = 0

There is currently no description for this enum. Please help us by contributing one!

LineTextureMode LINE_TEXTURE_TILE = 1

There is currently no description for this enum. Please help us by contributing one!

LineTextureMode LINE_TEXTURE_STRETCH = 2

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

bool antialiased = false

  • void set_antialiased ( bool value )

  • bool get_antialiased ( )

There is currently no description for this property. Please help us by contributing one!


LineCapMode begin_cap_mode = 0

There is currently no description for this property. Please help us by contributing one!


bool closed = false

  • void set_closed ( bool value )

  • bool is_closed ( )

There is currently no description for this property. Please help us by contributing one!


Color default_color = Color(1, 1, 1, 1)

  • void set_default_color ( Color value )

  • Color get_default_color ( )

There is currently no description for this property. Please help us by contributing one!


LineCapMode end_cap_mode = 0

There is currently no description for this property. Please help us by contributing one!


Gradient gradient

There is currently no description for this property. Please help us by contributing one!


LineJointMode joint_mode = 0

There is currently no description for this property. Please help us by contributing one!


PackedVector2Array points = PackedVector2Array()

There is currently no description for this property. Please help us by contributing one!


int round_precision = 8

  • void set_round_precision ( int value )

  • int get_round_precision ( )

There is currently no description for this property. Please help us by contributing one!


float sharp_limit = 2.0

  • void set_sharp_limit ( float value )

  • float get_sharp_limit ( )

There is currently no description for this property. Please help us by contributing one!


Texture2D texture

There is currently no description for this property. Please help us by contributing one!


LineTextureMode texture_mode = 0

There is currently no description for this property. Please help us by contributing one!


float width = 10.0

  • void set_width ( float value )

  • float get_width ( )

There is currently no description for this property. Please help us by contributing one!


Curve width_curve

  • void set_curve ( Curve value )

  • Curve get_curve ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void add_point ( Vector2 position, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


void clear_points ( )

There is currently no description for this method. Please help us by contributing one!


int get_point_count ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_point_position ( int index ) const

There is currently no description for this method. Please help us by contributing one!


void remove_point ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_point_position ( int index, Vector2 position )

There is currently no description for this method. Please help us by contributing one!