We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys, how could I get my image into a circle in processing? (in css I can use border-radius atribute, but I didn´t find nothing about it in processing... I´m getting several twitter image user profiles with square shapes,but I would like give a better style....
this is a reference about I would like get http://hugogiraudel.com/2013/04/02/items-on-circle/
Thanks in advance
Answers
you can draw your own textured shapes using beginShape and use your images as textures there.
it needs a bit of trig knowledge and beginShape(), texture(), vertex(x, y, u, v), endShape()...
Obviously an How To question, so I moved it...
Beside the texturing approach (I should learn it someday...), you can just use mask() to cut off the image outside of the circle.
Thanks folks! I have created a class, which get some parameters like radius, and create a ellipse shape to mask images. I will share when I clean a bit more the code, Thanks again!