[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Super Hires routine for Safari



This is a small spin off of what I am doing right now for iPhone
programming. Just created a set of Super Hires routines for doing
graphics on Safari browser, setting up a 640x400 canvas with the same
color palette for the users.

You can try them in Safari browser (PC/Mac/iPhone):
http://virtualgs.larwe.com/safari/demo.html
http://virtualgs.larwe.com/safari/pattern.html

You can check the same codes in Safari source view. Except for the
HTML container codes, no additional software installation or plugin
required.

Sample codes for pattern.html
--
hgr();
print("Welcome to the Super Hires Demo!");

for (i = 0; i < 64; i++) {
  hcolor(i % 15 + 1);
  hline(i * 10, 0, 639 - i * 10, 399);
}