Export (0) Print
Expand All
a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
Expand Minimize

x2 property

Gets or sets the x-coordinate for the end of a gradient vector.

Scalable Vector Graphics: Gradients and Patterns, Section 13.4.2Internet Explorer 9

Syntax

JavaScript
p = object.x2

Property values

Type: Floating-point

The x-coordinate for the end of the gradient vector.

Standards information

Remarks

The x1, y1, x2, and y2 properties define a gradient vector for a linear gradient. This gradient vector provides the starting and ending points that the gradient stops are mapped onto. The values of x1, y1, x2, and y2 can be either numbers or percentages.

If you do not specify this property, the effect is the same as if you specify a value of 0%.

See also

SVGLinearGradientElement

 

 

Show:
© 2014 Microsoft