Author Topic: Smallest WebGL page  (Read 2347 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 564
    • View Profile
    • Geeks3D.com
Smallest WebGL page
« on: February 01, 2011, 08:28:24 AM »
Can you do better?

Code: [Select]
<canvas onclick=with(getContext(‘experimental-webgl’))clearColor(0,0,0,1),clear(16640)>

Complete story: http://goo.gl/e7N33

Scott Downe

  • Newbie

  • Offline
  • *

  • 1
    • View Profile
Re: Smallest WebGL page
« Reply #1 on: February 01, 2011, 04:31:27 PM »
:D

I would like to point out that it does not count when "experimental-webgl" is not longer "experimental" :P

ljbade

  • NewsPosters
  • Jr. Member

  • Offline
  • *

  • 92
    • View Profile
Re: Smallest WebGL page
« Reply #2 on: February 01, 2011, 08:43:21 PM »
Well if you didn't want black you could drop the glClearColor call!