This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

roundRect

creates a rounded rectangle path

cq().roundRect (x, y, width, height, radius) {

radius corner radius

var layer = cq(300, 300).appendTo(document.body);

layer.clear("#000");

layer
  .fillStyle("#fff")
  .roundRect(32, 32, 240, 128, 12)
  .fill();



Have any questions? Don't hesitate to ask:

Post issues on github, support my work on gratipay author rezoner