In x-y plane, draw multiple touching circles of 1 inch radius with centre at even numbers i.e circles of 1 unit radius at (0,0) ; (2,0) ; (4,0) etc.. similarly at (0,2), (0, 4)… (2,4), (2,6) etc. filling all quadrants.
We wish to pack entire x-y plane with pixels having dia d1. Assume 100 pixels pack into 1 unit radius i.e 100*d1 = 1 inch.
Each pixel is a progressive shade of black. At Circle centers, pixel is 75% black. At periphery of circle, its 25% black i.e. shade progressively reduces as it radiates out until it meets the line radiating from adjacent circle.
e.g. lines from (0,0) and (0,2) will start at 75% from their respective centres; meeting at (0,1) where pixel will be 25% black. In between the shade is continuous progression from 75% to 25%. As you will note, lines from (0,0) and (2,2) radiating towards each other will meet at (1,1) which is outside the circle, so the shade of pixel at (1,1) will be less than 25% (but in the same ratio of progression)
2006-09-20
16:46:20
·
4 answers
·
asked by
Anonymous
in
Science & Mathematics
➔ Mathematics
To sum: We are given R0 (radius of circles), d1 (diameter of pixel), progression of reduction (reduces from 75% to 25% over a distance R0). We need to determine shade of pixel for any given (x,y)
The equation for 1 circle is easy. What we need is an equation that is smart enough to figure where exactly the pixel lies on plane..i.e x/R0 and y/R0 should definitely figure in the equation.
2006-09-20
16:46:54 ·
update #1
To answer Helmut’s question,
1) The shading is not progressive. So for example s(4,4) will be same as s(1,1)
2) the shading progression is linear. i.e at (0,0) shading is 0.75 unit, at (0,1) it is 0.25. So it falls 0.5 shade units in 1 unit distance. Therefore at (1,1)i.e 1.414 unit it will reduce by 1.414*0.5 = 0.7 i.e remainder at that point will be 0.75 – 0.7 = 0.05 unit.
2006-09-20
17:59:49 ·
update #2
We need the answer as a maths equation. A computer program is not an option.
2006-09-20
18:05:58 ·
update #3
Modulo is a programming function. How can it be represented mathematically in equation?
2006-09-20
18:12:45 ·
update #4