This week the assignment was:
Write a sketch that generates 2 shapes on a page. The first shape should be your design of the word “wet”. The second shape should be your design of the word “sharp”. Use only black and white. You have to use either Rune.Polygon
or Rune.Path
objects to draw the two shapes, and try to do a design that is better done in code than in hand.
This is a collage that I made in photoshop from a few times I ran the sketch:
I thought about Rain clouds and sharp window bars –
My code generates random sets of clouds each time it runs:
var r = new Rune({
container: “#canvas”,
width: 800,
height: 600
});
var radius = 200;
var numPath = 100;
var angle = 360 / numPath;
var group = r.group(r.width / 2, r.height / 2);
for(var i = 0; i < numPath; i++)
{
var x = Math.cos(Rune.radians(i * angle)) * radius;
var y = Math.sin(Rune.radians(i * angle)) * radius;
r.path(0,0, group)
.curveTo( x, y, x + 50, y + 50, x + i, y + i)
.rotate(i * angle, 0, 0, true)
.stroke(0, 0.3)
.strokeWidth(10)
.strokeCap(“round”)
.fill(false)
}
group.scale(2)
r.draw();
Leave a Reply