Author Topic: HTML5 Canvas & Color Cycling  (Read 749 times)

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
HTML5 Canvas & Color Cycling
« on: September 14, 2010, 01:56:24 PM »
I was dropped this link earlier today and thought someone here might appreciate it being posted. Be sure to also check out the post that goes along with the link as this code is being provided under the LGPL license.
Idiocy - Never underestimate the power of stupid people in large groups.


Offline shoespeak

  • Level 11
  • *
  • Posts: 75
  • Reputation: +3/-0
    • View Profile
Re: HTML5 Canvas & Color Cycling
« Reply #1 on: September 15, 2010, 10:32:58 PM »
Yeah this is great, I saw it on Ajaxian a little while ago. I think the article was pretty cool, the comments had some other examples of this technique. My favorite comment on the ajaxian post is how much space this can save..great for mobile!

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: HTML5 Canvas & Color Cycling
« Reply #2 on: September 16, 2010, 04:57:46 AM »
Very cute... Sigh, the old gfx in games back then was so totally awesome!


As for practical use of palete rotating technique it is near 0, except for some really rare cases.
- there are extremely few artists that know how to use this technique, even during 8bit era there were almost no artists that did it (take a note that the gfx on this example is 20 years or older).
- you can do it only with no more than 256 colours, also some of the colours will be used for animation, this leaves very few colours, the quality of gfx have to be inferior by default.
- animated gif provide similar effect (but with more colours available and animation converters widely available and the process of making gif animation from static images is trivial), for the price of bigger file.

Offline Barrikor

  • Level 21
  • *
  • Posts: 248
  • Reputation: +3/-0
    • View Profile
Re: HTML5 Canvas & Color Cycling
« Reply #3 on: September 16, 2010, 12:20:11 PM »
Thanks for the link :)

Looking through the artist's post on the subject makes me appreciate how these images work/worked even more.

Apparently you could slowly change the time of day and trigger weather events that the artist created, just by switching between color palates in the game's code at whatever speed needed... All with one image...
« Last Edit: September 16, 2010, 12:28:12 PM by Barrikor »
Projects: Pith Framework (at 0.5), CactusGUI (at 0.3)

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal