| Original | Raphael |
Elementary Shapes |
Line
|
|
Circle
- circle[cx=50][cy=50][r=40]
|
|
Ellipse
- ellipse[cx=50][cy=50][rx=40][ry=20]
|
|
Groups |
Group
- circle[cx=50][cy=50][r=40]
|
|
Group (with ID)
- circle[cx=50][cy=50][r=40]
- circle[data-svg-group="icanhascircle"]
|
|
Group / transform / translate
- circle[cx=50][cy=50][r=40]
- circle[transform="matrix(1,0,0,1,20,-10)"]
- rect[x=0][y=40][width=50][height=20]
- rect[transform="matrix(1,0,0,1,20,-10)"]
|
|
Style attribute
- rect[stroke-width=4]
- rect[fill=#008000]
|
|
Transform Matrix |
Matrix (scale 70%)
- rect[transform="matrix(0.7,0,0,0.7,0,0)"]
|
|
Matrix (rotate 30 degrees)
- rect[transform="matrix(0.866,0.5,-0.5,0.866,0,0)"]
|
|
Matrix (translate)
- rect[transform="matrix(1,0,0,1,20.1,10.1)"]
|
|
Matrix (translate, no commas)
- rect[transform="matrix(1,0,0,1,20.1,10.1)"]
|
|