[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

Re: [Factor-talk] OpenGL - How to draw lines interactively

2015-11-29 Thread Jon Harper
There's opengl.gl-line, used for exemple in ./extra/rosetta-code/animate-pendulum/animate-pendulum.factor Jon On Sun, Nov 29, 2015 at 2:07 PM, Georg Simon wrote: > I already have a gadget which responds to gestures. > > Which are the best words to use OpenGL for drawing

Re: [Factor-talk] Problem drawing an image in a new window

2015-11-29 Thread Sankaranarayanan Viswanathan
On 11/29/15 7:22 PM, Jon Harper wrote: > There's an image-gadget implementation from images.viewer, maybe you > should start from that and expand to get all the functionnality you > need ? > > IN: scratchpad > "resource:./misc/icons/factor_48...@2x.png" gadget. >

[Factor-talk] OpenGL - How to draw lines interactively

2015-11-29 Thread Georg Simon
I already have a gadget which responds to gestures. Which are the best words to use OpenGL for drawing simple lines one by one? ui.gadgets.canvas vocabulary ? make-canvas-dlist delete-canvas-dlist cycle ? Where should I start to read ? maze vocabulary ? Thank you, Georg

Re: [Factor-talk] Problem drawing an image in a new window

2015-11-29 Thread Jon Harper
There's an image-gadget implementation from images.viewer, maybe you should start from that and expand to get all the functionnality you need ? IN: scratchpad "resource:./misc/icons/factor_48...@2x.png" gadget. "resource:./misc/icons/factor_48...@2x.png" "image" open-window Jon On Sun, Nov

[Factor-talk] Problem drawing an image in a new window

2015-11-29 Thread Sankaranarayanan Viswanathan
Hi, Hi, i'm facing a problem drawing textures in a new window. when I create the gadget and add it to the listener using gadget. the image shows corretly, when I create the gadget and use open-window, the image does not show up on the new window. Sample code below: TUPLE: i-gadget < gadget

Re: [Factor-talk] Problem drawing an image in a new window

2015-11-29 Thread Sankaranarayanan Viswanathan
Opened issue #1510 Thanks, Sankar On 11/29/15 8:01 PM, John Benediktsson wrote: > That could be a bug, or maybe a side effect of the design. Would you mind > opening an issue on github for us to look into later? > > Thanks, > John. > >> On Nov 29, 2015, at 6:10 AM, Sankaranarayanan Viswanathan