line width with sketch

Oct 28, 2010 at 11:09am

line width with sketch

hi

2 questions:
- i make drawing with the jit.gl.sketch object. when i change the width, he change the width to all the lines. i search the possibility to change individually the width, make drawing with smaller and larger lines on the same picture.

- i like to delimit section. is it possible to send the sketch drawing to a square make with a jit.gl.plato or a videoplane. like a canvas.

thanks
all the best
f

– Pasted Max Patch, click to expand. –
#52944
Oct 29, 2010 at 1:46am

for different line widths, you’d need multiple jit.gl.sketch objects, same as color or point_size. though maybe through direct GL calls you can change these attributes for one sketch? not sure.

for the canvas, you could capture the drawing to a matrix, then use the matrix as a texture on the jit.plato/jit.gridshape/jit.videoplane. probably there are other ways too. might need to alter tex_map attribute to suit (or to make it go crazy :)

#190428
Oct 29, 2010 at 10:25am

ok,thanks
all the best
f

#190429

You must be logged in to reply to this topic.