Skip to content

Instantly share code, notes, and snippets.

View PenguinOfThunder's full-sized avatar
⌨️
coding

PenguinOfThunder

⌨️
coding
View GitHub Profile
@PenguinOfThunder
PenguinOfThunder / scrolltest.html
Last active December 17, 2015 23:59
Test of a single-buffer horizontal scroll in HTML5
<!DOCTYPE html>
<html>
<head>
<title>Canvas Image Test</title>
<script language="JavaScript">
var y;
var d = 1; // scroll delta
function scroll(ctx, dx, dy) {
// grab most of the image data
@PenguinOfThunder
PenguinOfThunder / html5canvasclock.html
Created May 19, 2013 20:13
Experiment with the HTML5 canvas feature. Port/rewrite of an old table-based one I made in 2006.
<!DOCTYPE html>
<!-- HTML5 canvas LED clock -->
<html lang="en">
<head>
<title>HTML5 canvas clock</title>
<script type="text/javascript"><!--
var blink=1;
var dispDate=1;
// the bitmap font