|
Author |
Topic: additive fills with shapes? (Read 404 times) |
|
ndmccormack
|
additive fills with shapes?
« on: Jul 6th, 2004, 8:39pm » |
|
is it possible to do additive fills with shapes?! much in the same way that images can be blended, is it possible to blend shapes too? also is it possible to do gradient fills? possibly from solids to transparents too? I've just discovered this program, and was delighted it was available, after reading about the design for numbers software at uni I really wanted to get my hands on something similar... cheers Niall
|
|
|
|
TomC
|
Re: additive fills with shapes?
« Reply #1 on: Jul 6th, 2004, 9:26pm » |
|
on Jul 6th, 2004, 8:39pm, ndmccormack wrote: also is it possible to do gradient fills |
| Yes. In between beginShape and endShape you can change the fill colour for each vertex... Code: beginShape(POLYGON); fill(#ff0000); vertex(100,100); fill(#ff8000); vertex(0,100); fill(#ffff00); vertex(0,0); fill(#0000ff); vertex(100,0); endShape(); |
| on Jul 6th, 2004, 8:39pm, ndmccormack wrote: possibly from solids to transparents too |
| Try it! As for blend modes, I think the answer is "not yet" but if you really need it, then look around the forum for how to draw directly to an image, and then blend the two images together.
|
|
|
|
ndmccormack
|
Re: additive fills with shapes?
« Reply #2 on: Jul 8th, 2004, 1:20pm » |
|
cheers mate, worked a treat. I forgot about the vertex command! just been using rect and box n that so far! I'll have a look at he blending options later...
|
|
|
|
elout
|
Re: additive fills with shapes?
« Reply #3 on: Jul 8th, 2004, 3:31pm » |
|
I did this expirment with filling, and BGraphics; http://www.xs4all.nl/~elout/proce55ing/filler3d/index.html - I used several BGraphics to draw on.(and rotated them) - draw a shape on a another cleared BGraphics - check if drawn: draw the selected texture onto your 'final' screen.
|
|
|
|
|