o5andrey,
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.10.2/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas-1">
var start = new Point(0,10);
var size = 10;
for (var i = 0; i < size; i++) {
var path = new Path();
path.style = {
strokeColor: '#E4141B',
strokeWidth: 2,
strokeCap: 'round'
};
path.add(start + new Point(0, i * 10));
path.add(start + new Point(i * 400, i * 10));
}
</script>
</head>
<body><div class="canvas"><canvas resize="true" id="canvas-1"></canvas></div></body>
</html>