Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 446 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Full Screen Sketch with screenWidth and screenHeight</title>
<script src="../../processing.js"></script>
<style>
body { margin: 0; padding 0; }
</style>
<body>
<script type="application/processing" data-processing-target="canvas">
void setup() {
size(screenWidth, screenHeight);
}
void draw() {
line(0, 0, screenWidth, screenHeight);
}
</script>
<canvas id="canvas"></canvas>
</body>
</html>
Something went wrong with that request. Please try again.