Forums > Jitter

line width with sketch


October 28, 2010 | 11:09 am

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. —
October 29, 2010 | 1:46 am

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 :)

October 29, 2010 | 10:25 am

ok,thanks
all the best
f

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter