We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › import graphics!
Page Index Toggle Pages: 1
import graphics! (Read 486 times)
import graphics!
May 13th, 2009, 8:46am
 
hey! imagine i want to program some random stuff with some vector graphics ( i've been doing random stuff with shapes how do i replace them with my own graphics?) i mean like made in illustrator and stuff, how can i do it?
Re: import graphics!
Reply #1 - May 13th, 2009, 8:58am
 
did you read this page
Re: import graphics!
Reply #2 - May 13th, 2009, 9:00am
 
nop! sorry!
Re: import graphics!
Reply #3 - May 13th, 2009, 3:14pm
 
well i know how to import graphics already! thanks so much! other question!

is there a way that i make an imported graphics list  so that  processing will randomly pick them to draw? like when i do

void draw(){
float x = random(width);
float y random(height);
shape("random pick", x, y, 10, 10);
}

or something?
Re: import graphics!
Reply #4 - May 13th, 2009, 4:52pm
 
I just answered that question some days ago...

http://processing.org/discourse/yabb2/num_1242035702.html#3
Page Index Toggle Pages: 1