please help! Problem with Constrain
in
Programming Questions
•
3 years ago
Hi!
ok so I have a feeling im missing something small, thats why im having this problem!
my program is supposed to copy an image over top of another image when the mouse is clicked, and thats working fine. but my "contrain" that "reveals" the image so to speak is a square, where as i want it to appear more like the spray-paint effect like in Windows Paint. Hopefully you get what i mean!
so what i am asking is, how do i make the constrain function allow me to get the effect im looking for? should i be creating an array that will randomize smaller squares constrained within lets say, a 20px radius of the mouse pointer? or should i be making a class that acts as a stencil?
thank you so much for the help!! I hope im making myself clear! if its a little confusing but you think you can help me, ill be MORE than happy to explain it further!
Have a great one everybody!
ok so I have a feeling im missing something small, thats why im having this problem!
my program is supposed to copy an image over top of another image when the mouse is clicked, and thats working fine. but my "contrain" that "reveals" the image so to speak is a square, where as i want it to appear more like the spray-paint effect like in Windows Paint. Hopefully you get what i mean!
so what i am asking is, how do i make the constrain function allow me to get the effect im looking for? should i be creating an array that will randomize smaller squares constrained within lets say, a 20px radius of the mouse pointer? or should i be making a class that acts as a stencil?
thank you so much for the help!! I hope im making myself clear! if its a little confusing but you think you can help me, ill be MORE than happy to explain it further!
Have a great one everybody!
1