Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual perception of percentage by area
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Visual perception of percentage by area
Miscellaneous
Thread ID:
01435888
Message ID:
01435888
Views:
152
Crank up VFP and run the code below. Tell me which of the two diagrams represent 50% in each pie slice. I don't want to bias the opinions by discussing the logic yet. I'm looking for first gut reactions.
clear
_screen.ForeColor = 0

nXCenter = 150
nYCenter = 150
nRadius = 100
_screen.Circle( nRadius, nXCenter, nYCenter, 1 )

_screen.Circle( nRadius * 0.5, nXCenter, nYCenter, 1 )

nTheta = pi() * 0.50
nXRim = nXCenter + nRadius * sin( nTheta )
nYRim = nYCenter + nRadius * cos( nTheta )
_screen.Line( nXCenter, nXCenter, nXRim, nYRim )

nTheta = pi() * 1.25
nXRim = nXCenter + nRadius * sin( nTheta )
nYRim = nYCenter + nRadius * cos( nTheta )
_screen.Line( nXCenter, nXCenter, nXRim, nYRim )


nXCenter = 350
nYCenter = 350
nRadius = 100
_screen.Circle( nRadius, nXCenter, nYCenter, 1 )

_screen.Circle( nRadius * 0.7071, nXCenter, nYCenter, 1 )

nTheta = pi() * 0.50
nXRim = nXCenter + nRadius * sin( nTheta )
nYRim = nYCenter + nRadius * cos( nTheta )
_screen.Line( nXCenter, nXCenter, nXRim, nYRim )

nTheta = pi() * 1.25
nXRim = nXCenter + nRadius * sin( nTheta )
nYRim = nYCenter + nRadius * cos( nTheta )
_screen.Line( nXCenter, nXCenter, nXRim, nYRim )
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Next
Reply
Map
View

Click here to load this message in the networking platform