Py5Vector.x

Py5Vector.x#

The vector’s x dimension value.

Examples#

v = py5.Py5Vector(1, 2)

print(v.x, v.y)
# 1.0, 2.0

v.x = 0
v.y += 10

print(v.x, v.y)
# 0.0, 12.0

Description#

The vector’s x dimension value. This is the vector’s 1st dimension.

Updated on March 06, 2023 02:49:26am UTC