View Single Post
Old 12-13-2009, 04:29 PM   #4 (permalink)
Richard
un-Retired
 
Richard's Avatar
 
Location: Vista, CA
Zone: USDA 10b
Name: Richard
Join Date: Jan 2008
Posts: 9,674
BananaBucks : 512,122
Feedback: 9 / 100%
Said "Thanks" 3,636 Times
Was Thanked 12,543 Times in 4,721 Posts
Said "Welcome to Bananas" 1,685 Times
Default Re: Musa 'Trigonometric'

Quote:
Originally Posted by Jack Daw View Post
You know Richard, it would look much better using Gauss' Plain and Euler's constant. At least it would be easier to use, ay?
OK, I used a Gaussian distribution for the fruit in the passion fruit vine along the back and Euler's natural logarithm to compute the thickness of lines, but that was about it:

int boldings = (int) Math.floor(0.49 + Math.log((double) (sidemeasure * (double) 1.0)) / Math.log(16.0)) ;

Otherwise I calculated points on the outline by taking trigonometric steps:

int banana17thX = banana16thX + (int) Math.floor(0.49 + ((double) ((3 * offset20) / 2) * Math.sin(Math.toRadians(20)))) ;
int banana17thY = banana16thY + (int) Math.floor(0.49 + ((double) ((3 * offset20) / 2) * Math.cos(Math.toRadians(20)))) - (3 * boldings) ;
__________________
Back in business at plantsthatproduce.com
Richard is offline   Reply With Quote Send A Private Message To Richard
Said thanks: