Re: [Factor-talk] images: new words to handle sprites and extract parts of an image

2015-11-30 Thread John Benediktsson
We welcome all contributions! It's alright if you want to put these words into a new vocabulary in extra and then migrate them somewhere else after you get a sense of how useful they are. Or if you feel they fit somewhere in particular, by all means send a pull request! You might want to check

Re: [Factor-talk] images: new words to handle sprites and extract parts of an image

2015-11-30 Thread Joe Groff
I don't believe I ever implemented atlases in that demo. I did write a quick and dirty atlas generator in extra/images/atlas you might be able to start with: http://docs.factorcode.org/content/vocab-images.atlas.html On Monday, November 30, 2015, John Benediktsson wrote: > We

Re: [Factor-talk] images: new words to handle sprites and extract parts of an image

2015-11-30 Thread Björn Lindqvist
Perhaps you can add it to some of the vocabs in the images.* hierarchy? I think images.tesselation or images.processing would be suitable. Also see the tesselate word, if I'm not mistaken it does the same thing as your generate-sprite-sheet word. But there is nothing like your image-part and

[Factor-talk] images: new words to handle sprites and extract parts of an image

2015-11-29 Thread Sankaranarayanan Viswanathan
Hi, For a small game that I was making in order to get accustomed to factor, I needed to load textures from a sprite sheet. Basically, I wanted to take an image and split it into pieces of fixed dimensions. I wasn't able to find words to help me there (may be there are and I am unaware). So I