0

I would like to figure out how to programmatically move the bear face and popsicle stick horizontally 1/28th of the way for each day of the month. I need to do this for charts ranging from 25 to 35 days in which the face would have to move 1/25th to 1/35th of the way each day, respectively. The reason for not doing this manually is that I'm trying to pull a different bear face each day from a database. Not sure how to attack this.

Bear Chart

Michael Myers
  • 188,989
  • 46
  • 291
  • 292

2 Answers2

0

this will depend on the language, but you will want some sort of image processing library.

Say, if you use PHP, then GD is a good start.

In Python, look at PIL.

In Ruby, there is RMagick.

Lie Ryan
  • 62,238
  • 13
  • 100
  • 144
0

You can overlay one image over another using plain CSS

Community
  • 1
  • 1
mvark
  • 2,105
  • 2
  • 21
  • 36