- What is the easiest syntax for includes? It could be great to be able to render includes inside of includes, to be able to provide e.g. a specific svg and img include for a single bigger layout.
> partialname
key: value
another: value
var r = new Rune({ | |
container: "#canvas", | |
width: 600, | |
height: 800 | |
}); | |
var poly = r.polygon(r.width/2, r.height/2); | |
var numPoints = 6; |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600 | |
}); | |
function triangle(x, y, s) { | |
r.triangle(x, y, x+(s/2), y+s, x-(s/2), y+s); | |
// if size is bigger than 50, call triangle again |
{ [Function: kramed] | |
setOptions: [Function], | |
options: [Function], | |
defaults: | |
{ gfm: true, | |
tables: true, | |
breaks: false, | |
pedantic: false, | |
sanitize: false, | |
smartLists: false, |
<div data-type="part"> | |
<h1>Part I</h1> | |
<p>This part contains two chapters.</p> | |
<section data-type="chapter">Chapter text here</section> | |
<section data-type="chapter">Chapter text here</section> | |
</div> |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600 | |
}); | |
// Create a polygon of your letter. This will be closing, but don't | |
// worry about that. | |
var n = r.polygon(200, 200) | |
.lineTo(0, 0) |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600 | |
}); | |
function drawCircle(pathX, pathY, startAngle, stopAngle, radius) { | |
for(var i = 0; i < 6; i++) { |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600 | |
}); | |
function drawCircle(pathX, pathY, startAngle, stopAngle, radius) { | |
var angleStep = 5; |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600, | |
debug: true | |
}); | |
var x = 0; | |
var y = 0; | |
var h = 300; |
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 700 | |
}); | |
r.circle(r.width/2, r.height/2, 30) | |
.fill(0); | |
var num = 10; |