Нет ничего похожего на paper.rhombus
в Рафаэле.Но вы можете расширить Рафаэль, чтобы получить метод ромба, как вы и просили.
Я создал маленькую скрипку для рисования ромба, так же, как вы хотели бы.
пример кода из скрипки.
r.rhombus({
cx:300,
cy:300,
side:15
});
// a rhombus rotated around its center.
r.rhombus({
cx:600,
cy:300,
side:15,
angle:45
}).attr({
'stroke-width' :2
})
Объяснение переменной:
cx - center x position
cy - center y position,
side - length of side of the rhombus.
angle - the angle through which the rhombus will be around its center (cx,cy)
многое узнало о ромбе: -)