I was recently asked to draw some flags of the world in SVG (Scalable Vector Graphics). One of the flags was the EU flag which has 12 stars arranged like a clock face.
I.E.
Initially I was just going to repeat everything 12 times for the twelve stars and then wondered if PHP would work inside SVC code. I tried it and it works perfectly,
The code,
The above is an image so it preserves the colours. I'll attach the actual file for anyone that wants to play. BTW, you can cut and paste the file into w3schools and have a play.
Hope someone finds this useful.
Mike.
Edit, had to change the file type to .txt, just change it back to .html
I.E.
Initially I was just going to repeat everything 12 times for the twelve stars and then wondered if PHP would work inside SVC code. I tried it and it works perfectly,
The code,
The above is an image so it preserves the colours. I'll attach the actual file for anyone that wants to play. BTW, you can cut and paste the file into w3schools and have a play.
Hope someone finds this useful.
Mike.
Edit, had to change the file type to .txt, just change it back to .html