Jump to content

How do i load an image and mask out the background color?


Nokdu
 Share

Recommended Posts

Hi.

 

I'm kinda new to the HTML5 scene.

 

I've been a cpp coder all along (and still am for my main job).

 

I've been considering quite a few HTML5/JS game engine(frameworks?) to start a personal project.

 

But it seems like i cannot find an engine that does the following.

 

for example.. let i have this image...

 

post-6539-0-62468300-1391393004.png
// from fms.. (license freeee yey)

 

i want to use this spritesheet but i want to load it without the background color.. 

 

is there a way to do this dynamically at preload?

Link to comment
Share on other sites

Is there a reason why you can't do this before hand in an art package? I mean like a really good reason? Because although this is possible to do with a simple canvas pixel scan, I honestly think it's a waste of time / memory in a game.

 

Well.. since I was going to use images off the internet(license free stuff..) and some images are prohibited for me to edit them.. 

But.. i guess I could just find other free images that i could edit/redistribute. 

 

thank you for the quick reply :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...