It's been quite some time since I did any Flash, besides so much has changed since then that I doubt I could make anything spectacular anymore.
However, in the meantime I've been having a look at the new <canvas> tag, which in my opinion does alot of interesting graphics stuff for JavaScript. Nothing super fancy, but fun to play around with anyway.
Here's a simple example that draws two intersecting rectangles, one of which has alpha transparency:
<script type="application/x-javascript">
function draw_rects() {
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, 55, 50);
ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
ctx.fillRect (30, 30, 55, 50);
}
</script>
<canvas id="canvas"></canvas>
Some related links:
- WHATWG canvas specification
- Rounded corners (thanks Greg)