Draw a bunch of lines.
[php lang=”JavaScript”]$(function() {
var canvas, context, width, height;
canvas = $(“#canvas”).get(0);
context = canvas.getContext(“2d”);
width = canvas.width;
height = canvas.height;
for(var y = 0; y < height; y += 10) { context.beginPath(); context.moveTo(0, y); context.lineTo(width, y); context.stroke(); } });[/php] Result.
Epic…
You’re very good at programming 😛
Can’t wait to see the point of it all
Hmm… “Result” is an embedded PNG. Could there be something in the HTML that will soon blow our minds? Is K. Peters actually in heaven? Is Hurley an angel?
Result is an html page with a canvas element and the javascript shown. Not an embedded png.
Oops… I right-clicked to view source and was thrown by the “View Image”/”Save Image” options.
Will the result look like something in this book? http://amzn.to/qVFjQI
iteration 3 ? http://www.creativeapplications.net/iphone/pulsart-iphone-ipad/
more like… http://www.artfromcode.com/?s=linescape