FAQ Database Discussion Community


Multiple animation in canvas

javascript,animation,sprite-sheet
I want to animate 2 figures on my page. Therefore I use Javascript. The problem is that I can't define which "sprite" he has to take. Because I can't add some Parameters like the object "animation" to the gameLoop()-method, because of the requestAnimationFrame. Any idea how I can solve this?...

How can I use icon from .eps file and load them on my site?

css,icons,eps,sprite-sheet
I Have a filefile.eps that I downloaded from http://www.shutterstock.com/ , it looks like this : I want to export all those icons into its own piece so that I can use them on my site. I've tried doing this manually one-by-one it is very time-consuming, now I'm looking for a...

jquery one row sprite sheet [closed]

javascript,jquery,sprite,sprite-sheet
I'm working on animating the movement of a sprite (rotate on the spot - left to right and rotate 90 degrees from a standing position to face upwards or downwards) using a single-row sprite sheet containing 30 separate images, but I don't know where to start. I've had a look...

Create a Sprite from raw RGBa data

html5,html5-canvas,easeljs,createjs,sprite-sheet
I take several snapshots from playing video on canvas and thus getting raw RGB images into memory. In the documentations its states that Sprite class accepts a Spritesheet instance only. Is there any way to create a Sprite from raw RGBa? Or maybe convert that raw data into separate Bitmap...

changing sprite frame depending on random value

list,lua,sprite-sheet
I have a list of buttons(currently images) and i want to change the image color depending on the value that is taken from the list buttons = {"btn1","btn2","btn3","btn4"} local buttonSheetData = { width = 150, height = 150, numFrames = 2, sheetContentWidth = 300, sheetcontentheight = 150, } local buttonSheet...

Roku animation using animated sprites, how to create the tedious xml

xml,animation,sprite-sheet,roku,brightscript
I made a simple java script code to create the sprite sheet xml for the sprite animation in roku written in brightscript. Is there an easier way to just pass in the sheet and let it figure out the dimensions of the frame? That would be cool. I learnt about...