Question: I'm trying to build a web tool to generate an image composed of a stack of shapes. Each shape element is derived from one original shape; the derivation is basically created by expanding by *x* pixels, then rotating it by *y* degrees, then placing it at the "end" of the stack. In the picture below, the original shape is a white heptagon, with slightly curved sides. The pink derivation was created by the following steps:

1. Copy the white heptagon and enlarge it by 10 pixels.
2. Rotate it by +/- 8 degrees.
3. Place it behind the white heptagon.

My question is what web technology will be suitable (and the simplest) to do this task? HTML5 canvas, SVG, or WebGL? I am leaning towards the canvas but it [only supports one primitive shape i.e. rectangle](https://developer.mozilla.org/en-US/docs/HTML/Canvas/Tutorial/Drawing_shapes?redirectlocale=en-US&redirectslug=Canvas_tutorial/Drawing_shapes).

For the curvy sides, I don't think there is a library that does this automatically. I might need to resort to doing it manually e.g. using *arcs()* in canvas.

![A stack of shapes](https://i.stack.imgur.com/2yvaC.png)

Answer: 
Try this:

```
Select REPLACE ('S7Y 6H5', ' ', ' & ')

```
you can use `INSERT` `INSERT(str,pos,len,newstr)`

```
     SELECT INSERT('S7Y 6H5', 4, 0, ' & ');

```

<http://dev.mysql.com/doc/refman/5.5/en/string-functions.html#function_insert>